Rails 3.1.3
I am wondering if has_and_belongs_to_many association can be used for a
single model?
More specifically, say I have a model called, Person, another model
called Meeting.
Person 1 and Person 2 share some kind of association through Meeting so
that
person1 = Person.find(...)
then,
person1.meeting returns person2.
If my understanding is correct, has_and_belongs_to_many association is
used for one model with another.
Somehow I want to find a model object from the same object.
Do you think we can do that?
soichi
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment