Viewing version 2 created about 1 year ago by geoffrey.

named resources

NamedResources

Simple plugin to allow custom route naming when using map.resources Just add :route_name => ‘your_route_name’ to your resources declaration:

map.resources :members, :route_name => ‘utilisateurs’

will generate routes like:

/utilisateurs/:id

This is useful for i18n routes

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 3. about 1 year by geoffrey
  2. 2. about 1 year by geoffrey
  3. 1. about 1 year by geoffrey