Permalink
Browse files

Updated Singular Resource shorthand to mention shorthand without cont…

…roller name.
  • Loading branch information...
1 parent 21b55e4 commit 1dd7bf4ea3490f49732fbc8296ca14090a2e71ee @ojak ojak committed Apr 11, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 guides/source/routing.md
View
@@ -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

0 comments on commit 1dd7bf4

Please sign in to comment.