aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorNoam Gagliardi <monush872@gmail.com>2013-02-18 04:45:58 -0500
committerNoam Gagliardi <monush872@gmail.com>2013-02-18 04:45:58 -0500
commit72118ba01db23f83e2cb88d6f690e243e50c5145 (patch)
tree10a6b8da02d7cbdf4713d9c8001315bc720e1cb7 /guides
parent0c145448c42e811f9241e1634ecd2d60ddefff3a (diff)
downloadrails-72118ba01db23f83e2cb88d6f690e243e50c5145.tar.gz
rails-72118ba01db23f83e2cb88d6f690e243e50c5145.tar.bz2
rails-72118ba01db23f83e2cb88d6f690e243e50c5145.zip
clarify singular and plural routes
Found the wording on line 158 somewhat confusing. Added short example to clarify.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/routing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 4614169653..8c8ac34862 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -155,7 +155,7 @@ creates six different routes in your application, all mapping to the `Geocoders`
| PATCH/PUT | /geocoder | update | update the one and only geocoder resource |
| DELETE | /geocoder | destroy | delete the geocoder resource |
-NOTE: Because you might want to use the same controller for a singular route (`/account`) and a plural route (`/accounts/45`), singular resources map to plural controllers.
+NOTE: Because you might want to use the same controller for a singular route (`/account`) and a plural route (`/accounts/45`), singular resources map to plural controllers. So that, for example, `resource :photo` and `resources :photos` creates both singular and plural routes that map to the same controller (`PhotosController`).
A singular resourceful route generates these helpers: