I’m able to add a record to a join table like this:
e = Event.find(m)
g = Group.find(n)
e.groups << g
But how can I remove the record? I imagine something like
e = Event.find(m)
g = Group.find(n)
e.g.destroy!
But I haven’t found the right syntax yet. Anyone familiar with this?
Thanks!