| 334 | | # See map.resources for general conventions. These are the main differences: |
|---|
| 335 | | # * A singular name is given to map.resource. The default controller name is still taken from the plural name. |
|---|
| 336 | | # * To specify a custom plural name, use the :plural option. There is no :singular option. |
|---|
| 337 | | # * No default index route is created for the singleton resource controller. |
|---|
| 338 | | # * When nesting singleton resources, only the singular name is used as the path prefix (example: 'account/messages/1') |
|---|
| | 334 | # See <tt>#resources</tt> for general conventions. These are the main differences: |
|---|
| | 335 | # * A singular name is passed to <tt>resource</tt>. The controller's name is |
|---|
| | 336 | # inferred by pluralizing this name. To use a different controller, use the |
|---|
| | 337 | # <tt>:controller</tt> option. |
|---|
| | 338 | # * No +index+ route is created. |
|---|
| | 339 | # * When resources are nested, and a singleton resource forms part of a |
|---|
| | 340 | # path prefix, the singular name is used (example: <tt>/account/messages/1</tt>). |
|---|