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

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

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