Passing multiple values with link_to

Hi,

I’m porting a family membership and program involvement system for a
non-profit organization I’ve been involved with to rails from
FileMaker. I’m new to rails and have been enjoying it very much, but
I’m running into a problem with many-to-many relationships and
editing.

I have five tables, families, families_members, members,
members_programs and programs. I have a list view for families where
I can select a family and see all of it’s members and each of the
members programs that they have been involved.

When I create a new member I it gets added to the family and returns
back to the family that I’m editing since I pass the families id.
However, when I edit an existing member I seem to be only able to pass
one id (the member id) in the link_to helper and therefore unable to
return the family that was editing.

  1. Is there a way to pass multiple values with link_to?
    <%= link_to ‘Edit’, :action => ‘editmember’, :id => member %>

  2. Is there a better way to do this?

Thanks,
Venkat