RESTful routes: How to pass an additional value to params?!

Hi there,

is it true that with RESTful routes, I can’t pass an additional value to
the params hash anymore, within a link?

Example:

Old school:

<%= link_to ‘New message’, :controller => ‘messages’, :action => ‘new’,
:target_id => @member.id %>

RESTful new school:

<%= link_to ‘New message’, new_user_message_path(@user), :target_id =>
@member.id %>

-> But doing it like this just ignores the “:taget_id” that I need to
pass to the controller !

How should I do this using RESTful routes?

Thanks a lot for your help!
Tom

this will do

<%= link_to ‘New message’, new_user_message_path(@user, :target_id =>
@member.id) %>

just pass the value within the pathhelper

Great! Thanks a lot, Thorsten!