aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2018-12-04 13:45:45 -0500
committerGannon McGibbon <gannon.mcgibbon@gmail.com>2018-12-04 13:46:02 -0500
commit797317089301ca469e113ca3f46f29c129246c3e (patch)
treeebb3d6b7facfbd6d418da046ed6322fe9ddca55d /guides/source
parente5172265bf36c0834a67ef82c0ad514cfe7671df (diff)
downloadrails-797317089301ca469e113ca3f46f29c129246c3e.tar.gz
rails-797317089301ca469e113ca3f46f29c129246c3e.tar.bz2
rails-797317089301ca469e113ca3f46f29c129246c3e.zip
Add note about symbols vs strings
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/routing.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 84de727c11..0a0f1b6754 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -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: