Displaying 1 result from an estimated 1 matches for "some_pictur".
Did you mean:
some_picture
2009 Oct 04
1
circular relationship - habtm
So I have 2 models: Picture and Comment.
Pictures have many Comments, but I''d like for users to be able to post
Pictures in Comments, so Comments will have one Picture (possibly).
This creates a kind of circular relationship it looks like, and the
only way I could think of to implement this is with
has_and_belongs_to_many. Am I right, or is there a better way to do
this?