How to change a rails controller default router from index to other? -


as know, if have userscontroller, when /users default /users/index. if want map /users /users/show, can do? (this can apply other controllers, not users.)

you can modified file global.asax. there method named 'registerroutes',change 'index' in 'action=index' 'show'


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -