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
Post a Comment