aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/routing.textile
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2011-10-31 10:36:38 +0400
committerAlexey Vakhov <vakhov@gmail.com>2011-10-31 10:36:38 +0400
commitd106b34bd582483ebae57f8fa57f8d3649a31829 (patch)
treebd9de3b383fde6cb67afde27c5a809109ed1038d /railties/guides/source/routing.textile
parent2d337ef080aec2c2e21ede3451f652ab5eaadca1 (diff)
downloadrails-d106b34bd582483ebae57f8fa57f8d3649a31829.tar.gz
rails-d106b34bd582483ebae57f8fa57f8d3649a31829.tar.bz2
rails-d106b34bd582483ebae57f8fa57f8d3649a31829.zip
Update routing guides, root route should be at the top of the file
Diffstat (limited to 'railties/guides/source/routing.textile')
-rw-r--r--railties/guides/source/routing.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile
index f281009fee..29c729592b 100644
--- a/railties/guides/source/routing.textile
+++ b/railties/guides/source/routing.textile
@@ -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