aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-12-04 14:04:04 -0500
committerGitHub <noreply@github.com>2018-12-04 14:04:04 -0500
commitec66c6a2fa4ee200259341a18ecd96310f388ba3 (patch)
treefc06ab90887f34883d706935924860b3435e1bce
parent0421eecf13747db9d73140615fc57244eb060838 (diff)
parent797317089301ca469e113ca3f46f29c129246c3e (diff)
downloadrails-ec66c6a2fa4ee200259341a18ecd96310f388ba3.tar.gz
rails-ec66c6a2fa4ee200259341a18ecd96310f388ba3.tar.bz2
rails-ec66c6a2fa4ee200259341a18ecd96310f388ba3.zip
Merge pull request #34616 from gmcgibbon/route_symbol_note
Add note about symbols vs strings
-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: