Merge pull request #34616 from gmcgibbon/route_symbol_note

Add note about symbols vs strings
This commit is contained in:
Rafael França 2018-12-04 14:04:04 -05:00 committed by GitHub
commit ec66c6a2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -543,6 +543,8 @@ resources :photos do
end 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 #### Adding Routes for Additional New Actions
To add an alternate new action using the `:on` shortcut: To add an alternate new action using the `:on` shortcut: