search for: remove_memb

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

Did you mean: remove_me
2006 Aug 08
3
problem inserting parameters in link_to_remote
...Ajax to transfer a name from the long list to the group, or drop an existing name from the group. But. If I add a person to the group, and try to remove without refresh, it doesn''t work. My link is formed by <%= link_to_remote ''add'', :url => { :action => "remove_member", :id => person.id, :group_id => group.id"} %> For a member who''s in the group when I reach the page, that generates a call to /controller/remove_member/person.id?group_id=group.id as it should. But if I add a member ''foo'' to the group and then try...
2006 Jun 08
3
has_many :through updates on delete.
...:member, :class_name => ''Actor'', :foreign_key => ''member_id'' belongs_to :source_group, :class_name => ''Group'', :foreign_key => ''source_group_id'' end Now, when removing a member from a Group (in the method Group.remove_member), I need to delete a particular GroupMember instance so I call group_members.delete(group_member). Fine so far, except that the "has_many :through" association ''members'' doesn''t get updated! It seems to have retained the cached @members value and doesn...