Merge pull request #34616 from gmcgibbon/route_symbol_note
Add note about symbols vs strings
This commit is contained in:
commit
ec66c6a2fa
@ -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 New Issue
Block a user