I have the following :has_many, :through
association for my models:
Group Model:
has_many :group_users
has_many :users, :through => :group_users
Users Model:
has_many :group_users
has_many :groups, :before_add => :validates_group, :through => :group_users
GroupsUsers Model:
belongs_to :group
belongs_to :user
In the groups_users
table, I have an additional column that keeps up with the users status (active or inactive). I need to be able to update that column when a user removes them self from a group. How can you use update_attributes
on a join table?