Forum: Ruby on Rails Passing multiple values with link_to

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Venkat Memula (Guest)
on 2006-02-12 23:49
(Received via mailing list)
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 %></td>

2) Is there a better way to do this?

Thanks,
Venkat
This topic is locked and can not be replied to.