diff options
| author | Alexey Vakhov <vakhov@gmail.com> | 2011-10-31 10:36:38 +0400 |
|---|---|---|
| committer | Alexey Vakhov <vakhov@gmail.com> | 2011-10-31 10:36:38 +0400 |
| commit | d106b34bd582483ebae57f8fa57f8d3649a31829 (patch) | |
| tree | bd9de3b383fde6cb67afde27c5a809109ed1038d | |
| parent | 2d337ef080aec2c2e21ede3451f652ab5eaadca1 (diff) | |
| download | rails-d106b34bd582483ebae57f8fa57f8d3649a31829.tar.gz rails-d106b34bd582483ebae57f8fa57f8d3649a31829.tar.bz2 rails-d106b34bd582483ebae57f8fa57f8d3649a31829.zip | |
Update routing guides, root route should be at the top of the file
| -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 |
