I have an AREL query:
@group.members.where(\'member_id != ?\', 4)
As expected, this query returns all members with an ID not equal to 4.
The correct syntax is:
@group.members.where('member_id NOT IN (?)', [4, 3] )
This also work if you pass only one integer (not an array):
@group.members.where('member_id NOT IN (?)', 12)