diff options
author | Oliver Jakubiec <ojakubiec@gmail.com> | 2013-04-10 17:40:18 -0700 |
---|---|---|
committer | Oliver Jakubiec <ojakubiec@gmail.com> | 2013-04-10 17:40:18 -0700 |
commit | 1dd7bf4ea3490f49732fbc8296ca14090a2e71ee (patch) | |
tree | 2cbc62aeb3fe962ff75446ec38cda842e112140f | |
parent | 21b55e4462c2a9d3a6420d2754ab63a9d6f01da8 (diff) | |
download | rails-1dd7bf4ea3490f49732fbc8296ca14090a2e71ee.tar.gz rails-1dd7bf4ea3490f49732fbc8296ca14090a2e71ee.tar.bz2 rails-1dd7bf4ea3490f49732fbc8296ca14090a2e71ee.zip |
Updated Singular Resource shorthand to mention shorthand without controller name.
-rw-r--r-- | guides/source/routing.md | 6 |
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 |