search for: editmemb

Displaying 2 results from an estimated 2 matches for "editmemb".

Did you mean: editme
2006 Aug 09
1
Clarification on error_messages_for
...up has_many GroupMembers. I have a customized view which shows a list of GroupMembers followed by a field and a button which facilitates adding a member to the group by either email address or login. When the user attempts to add someone to the group who is already there, I need to return to this EditMembers view with an error message. I cannot figure out how to use error_messages_for to display the error message when returning to the view. The most natural thing to attach the messages to seems to be the GroupMember object, but the new groupmember object doesn''t exist until the button act...
2006 Feb 12
0
Passing multiple values with link_to
...owever, 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