diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-11-05 20:45:11 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-11-05 20:45:11 +0530 |
commit | fdbc4e5f4e5746ebf558485348c841b33f038fda (patch) | |
tree | 4c1e573125a858d5912e03f8bdf1babcc43f7a92 /railties/guides/source/routing.textile | |
parent | 2751e213d8611f74796c7eea876e4ee9f26e6862 (diff) | |
parent | 09298e42578740094130f4a6536b944a7733d7f1 (diff) | |
download | rails-fdbc4e5f4e5746ebf558485348c841b33f038fda.tar.gz rails-fdbc4e5f4e5746ebf558485348c841b33f038fda.tar.bz2 rails-fdbc4e5f4e5746ebf558485348c841b33f038fda.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/routing.textile')
-rw-r--r-- | railties/guides/source/routing.textile | 2 |
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 |