I have a CRUD controller for a model.
Doing resources :foo
allows me to route on /foo/:id
, etc. for calling actions.
I want add a route for a translation of 'foo' in another language. Let's say 'toto'.
So I want all the /toto/:id
, etc., routes to act exactly like the /foo/:id
, etc., routes.
How may I achieve that?