fixed an unclear description in Sigular Resources.
This commit is contained in:
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"
|
||||
|
Loading…
Reference in New Issue
Block a user