Selecting a single entry in a connection request in rails3
One article has many comments and I want to get all articles that have comments that match the condition.
Article.find(:joins => :comments ...)
selection of duplicate records and
Article.find(:include => :comments ...)
will also extract the Comment data, I just want to get the uniq article data
+3
source to share
2 answers