diff options
author | Jamison Dance <jergason@gmail.com> | 2010-09-14 17:14:16 -0600 |
---|---|---|
committer | Jamison Dance <jergason@gmail.com> | 2010-09-14 17:14:16 -0600 |
commit | 50b175030ab68f65bd54c6023c5d6c5e5e66bd2c (patch) | |
tree | 8cc4038a4335cb8211053fab664c164737e03916 | |
parent | dd6efe98b62946ae4d4df0672292449226b8d6fc (diff) | |
download | rails-50b175030ab68f65bd54c6023c5d6c5e5e66bd2c.tar.gz rails-50b175030ab68f65bd54c6023c5d6c5e5e66bd2c.tar.bz2 rails-50b175030ab68f65bd54c6023c5d6c5e5e66bd2c.zip |
fixed an unclear description in Sigular Resources.
-rw-r--r-- | railties/guides/source/routing.textile | 2 |
1 files changed, 1 insertions, 1 deletions
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. <ruby> match "profile" => "users#show" |