1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update guides/source/routing.md

It's no longer necessary to delete public/index.html for the root route to take effect.
This commit is contained in:
George Claghorn 2012-12-11 04:29:19 -05:00
parent 0807f6e861
commit 6e98989c95

View file

@ -793,7 +793,7 @@ root to: 'pages#main'
root 'pages#main' # shortcut for the above root 'pages#main' # shortcut for the above
``` ```
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. You should put the `root` route at the top of the file, because it is the most popular route and should be matched first.
NOTE: The `root` route only routes `GET` requests to the action. NOTE: The `root` route only routes `GET` requests to the action.