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 -

python - Finding intersection between ellipse and a line -

c++ - NetBeans Remote Development with additional configuration -