From 50b175030ab68f65bd54c6023c5d6c5e5e66bd2c Mon Sep 17 00:00:00 2001 From: Jamison Dance Date: Tue, 14 Sep 2010 17:14:16 -0600 Subject: fixed an unclear description in Sigular Resources. --- railties/guides/source/routing.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/guides/source') diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 7e1b0c2e32..6c593a8da5 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -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. match "profile" => "users#show" -- cgit v1.2.3