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:
parent
0807f6e861
commit
6e98989c95
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ root to: 'pages#main'
|
|||
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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue