aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorOliver Jakubiec <ojakubiec@gmail.com>2013-04-10 17:40:18 -0700
committerOliver Jakubiec <ojakubiec@gmail.com>2013-04-10 17:40:18 -0700
commit1dd7bf4ea3490f49732fbc8296ca14090a2e71ee (patch)
tree2cbc62aeb3fe962ff75446ec38cda842e112140f /guides/source/routing.md
parent21b55e4462c2a9d3a6420d2754ab63a9d6f01da8 (diff)
downloadrails-1dd7bf4ea3490f49732fbc8296ca14090a2e71ee.tar.gz
rails-1dd7bf4ea3490f49732fbc8296ca14090a2e71ee.tar.bz2
rails-1dd7bf4ea3490f49732fbc8296ca14090a2e71ee.zip
Updated Singular Resource shorthand to mention shorthand without controller name.
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r--guides/source/routing.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 04098f0a5c..f4cb8fe15b 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -138,6 +138,12 @@ Sometimes, you have a resource that clients always look up without referencing a
get 'profile', to: 'users#show'
```
+Passing a `String` to `match` will expect a `controller#action` format, while passing a `Symbol` will map directly to an action:
+
+```ruby
+get 'profile', to: :show
+```
+
This resourceful route:
```ruby