1
0
Fork 0
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:
Gannon McGibbon 2018-12-04 13:45:45 -05:00
parent e5172265bf
commit 7973170893

View file

@ -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: