Skip to content

Commit

Permalink
clarify singular and plural routes
Browse files Browse the repository at this point in the history
Found the wording on line 158 somewhat confusing. Added short example to clarify.
  • Loading branch information
noam87 committed Feb 18, 2013
1 parent 0c14544 commit 72118ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/routing.md
Expand Up @@ -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:

Expand Down

0 comments on commit 72118ba

Please sign in to comment.