From 797317089301ca469e113ca3f46f29c129246c3e Mon Sep 17 00:00:00 2001 From: Gannon McGibbon Date: Tue, 4 Dec 2018 13:45:45 -0500 Subject: Add note about symbols vs strings --- guides/source/routing.md | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.3