Permalink
Browse files

clarify singular and plural routes

Found the wording on line 158 somewhat confusing. Added short example to clarify.
  • Loading branch information...
1 parent 0c14544 commit 72118ba01db23f83e2cb88d6f690e243e50c5145 @noam87 noam87 committed Feb 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit 72118ba

Please sign in to comment.