Hi All,
I’m just getting familiar with has_many :through usage, and something
became apparent quickly: there was nothing preventing the same relation
from being inserted into my join table multiple times.
group_id user_id
1 1
1 1
etc. would happen upon many refreshings of the post.
I can think of several ways to prevent this from happening, but what is
the best Rails way of doing it? (a unique index on the table feels like
cheating…)
Any thoughts or pointers?
Thanks!
Jack