RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: slm4996
Here is the solution for those who may want it:
def self.tagged_with(name) #name is an array of 1 or more tag names all(:conditions => {:tags => {:name => name}}, :joins => :taggings, :joins => :tags, :group => 'articles.id', :having => ['COUNT(*) >= ?', name.length] ) end
Ever figure this one out TopperH? I've been struggling with the same problem.
Here is the solution for those who may want it:
Ever figure this one out TopperH? I've been struggling with the same problem.