fixed an unclear description in Sigular Resources.

This commit is contained in:
Jamison Dance 2010-09-14 17:14:16 -06:00
parent dd6efe98b6
commit 50b175030a

@ -116,7 +116,7 @@ resources :videos
h4. Singular Resources
Sometimes, you have a resource that clients always look up without referencing an ID. A common example, +/profile+ always shows the profile of the currently logged in user. In this case, you can use a singular resource to map +/profile+ (rather than +/profile/:id+) to the +show+ action.
Sometimes, you have a resource that clients always look up without referencing an ID. For example, you would like +/profile+ to always show the profile of the currently logged in user. In this case, you can use a singular resource to map +/profile+ (rather than +/profile/:id+) to the +show+ action.
<ruby>
match "profile" => "users#show"