The Passionate Craftsman

Ruby, PHP, MySql, Software engineering and more.

Friday, 23 October 2009

Rails default route

If yuo want to map your Rails' root directory, something like, to a controller, use this directive in your cong/routes.rb:

map.root :controller => 'configurations'

'configurations' is the controller that you might want to map. 'map.root' means 'map the root'.



Post a Comment

Subscribe to Post Comments [Atom]

<< Home