Skip to content

Commit

Permalink
Update routing guides, root route should be at the top of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
avakhov committed Oct 31, 2011
1 parent 2d337ef commit d106b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/routing.textile
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ You can specify what Rails should route +"/"+ to with the +root+ method:
root :to => 'pages#main'
</ruby>

You should put the +root+ route at the end of the file. You also need to delete the +public/index.html+ file for the root route to take effect.
You should put the +root+ route at the top of the file, because it is the most popular route and should be matched first. You also need to delete the +public/index.html+ file for the root route to take effect.

h3. Customizing Resourceful Routes

Expand Down

0 comments on commit d106b34

Please sign in to comment.