mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add note about symbols vs strings
This commit is contained in:
parent
e5172265bf
commit
7973170893
1 changed files with 2 additions and 0 deletions
|
@ -543,6 +543,8 @@ resources :photos do
|
|||
end
|
||||
```
|
||||
|
||||
NOTE: If you're defining additional resource routes with a symbol as the first positional argument, be mindful that it is not equivalent to using a string. Symbols infer controller actions while strings infer paths.
|
||||
|
||||
#### Adding Routes for Additional New Actions
|
||||
|
||||
To add an alternate new action using the `:on` shortcut:
|
||||
|
|
Loading…
Reference in a new issue