I recently became drunk on the Rails koolaid and am trying to create the following:
User model (this is fine)
id
Link model (associated with two Users)
id
user_id1
user_id2
Is this an instance in which I would want to use the has_and_belongs_to_many association type on the Link model? How should I do this?
Ultimately, I would like to be able to have a user object and call @user.links to get all links involving that user...
I'm just not sure what the best way to do this in Rails is.
Thanks!
Tom