Permalink
Browse files

Update routing guides, root route should be at the top of the file

  • Loading branch information...
avakhov authored and vijaydev committed Oct 31, 2011
1 parent 194d7a4 commit 1389ebfe2ffbec84a5e72b4f0e839bd2af5b314f
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/routing.textile
@@ -618,7 +618,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

0 comments on commit 1389ebf

Please sign in to comment.