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:
rm public/index.html
Step 2: Change the default routes
- Open
config/routes.rb in your favorite text editor
- Find the line that reads:
# map.connect '', :controller => "welcome"
- 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 => "...".
- 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