adding the root index page?

Just add an index action on whatever controller you’re using to serve up whatever. [Specific, huh?] Add a route like so…

map.index “/”, :controller => [your controller], :action => “index”

It’s that simple. If it doesn’t fit in neatly with any of your other controllers, you might want to just plop that index method into ApplicationController. Just make sure the routing directs the base path to the right controller and method. No need to rely on a static page.

RSL

Russell Norris wrote:

Just add an index action on whatever controller you're using to serve up whatever. [Specific, huh?] Add a route like so...

map.index "/", :controller => [your controller], :action => "index"

It's that simple. If it doesn't fit in neatly with any of your other controllers, you might want to just plop that index method into ApplicationController. Just make sure the routing directs the base path to the right controller and method. No need to rely on a static page.

RSL

Yes, just edit config/routes.rb and it's written right there in the comments.