Thanks Robert for your answer, even if it was not what I was looking for.
Anyway meanwhile I found an alternative solution to my problem, and had no
more to have the id parameter mapped to params[:project_id] instead of
params[:id]?
Florent
2009/7/28 Robert Walker
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
>
> Florent Florent wrote:
> > Is it possible to define a RESTful route like "map.resources
:projects"
> > having the id parameter mapped to params[:project_id] instead of
> > params[:id]?
> If I understand your questions correctly this screencast from Ryan Bates
> might help:
> http://railscasts.com/episodes/63-model-name-in-url
>
> It may not be exactly what you''re looking for, but it might help
you get
> there.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---