Displaying 1 result from an estimated 1 matches for "photos_tags".
2006 Feb 12
2
ActiveRecord Many-To-Many relationship question
...quot; even if the photo in question
also has the tags
"bar" and "baz". Is there some way to get ActiveRecord to return "foo",
"bar", and "baz" in the tags list?
I understand why I''m seeing this behavior (the underlying query joins
photos, photos_tags, and tags, and throws out all rows which don''t include
tag foo), I just don''t know how to get around it short of iterating through
the list of photos returned by photo.find and re-queyring for each one
individually.
Thanks in advance!
C.T.
-------------- next part --------------...