Given:
Group (id)
GroupMember (id, group_id)
Currently I can do:
@group.group_members
which returns all the group’s members. I want to return all group_member except for the current_user. Is there a way to do something like
@group.group_members.where(:id not equal to current_user.id) ?
Thanks
You were close: