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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -