Rails Default Controller for Site Root
To designate a particular controller so that all of its methods appear off the root of your site, add the following to routes.rb inside the ActionController::Routing::Routes.draw do |map| block:
map.connect ':action', :controller => "yourcontrollername"
About this entry
You’re currently reading “ Rails Default Controller for Site Root ,” an entry on bluebones.net
- Published:
- 2007.05.26
- Category:
- Programming
1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]