Hello. I got a REST URL personalization issue... Here is an example to explain:
If have two nested resources set like this in "routes.rb":
map.resources :teams do |teams| teams.resources :players end
So, some teams will be accessible with URL such that:
/teams/42 /teams/42/edit
and the players by some of the form:
/team/42/players /team/42/players/18 /team/42/players/new
etc...
Is there a convenient way do not use the "id" column of the "team" and "player" models but another one (e.g. "name", supposing it's unique) to have nicer URLs but keeping the ability to use *_path helpers? So, I dream of URLs such that, keeping the same example:
/teams/mylovelyteam /teams/mylovelyteam/players /teams/mylovelyteam/players/new /teams/mylovelyteam/players/theleader
I hope my explanation is understandable...
Thanks.
aurels, belgium