Ruby on Rails
HowtoConfigureTheDefaultPageForYourRailsApp

Step 1: Delete the “Congratulations” page

Delete the index.html page from the public directory that the rails command creates with:

<pre>rm public/index.html</pre>

Step 2: Change the default routes

  1. Open config/routes.rb in your favorite text editor
  2. Find the line that reads:
    <pre># map.connect '', :controller => "welcome"
  3. Remove the hash sign to uncomment the route and change the controller to the controller you wish to use as a default. You can also specify the action by adding :action => "...".
  4. Save, close, and try it out. (Rails restart is required if in production mode.)

Category: Howto

More on routes: http://manuals.rubyonrails.com/read/chapter/65