RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: phereford
https://github.com/rails/arel/blob/master/lib/arel/predications.rb
tag = Tag.arel_table Article.joins(:tags).where(tag[:name].in_all(["foo", "bar"]))
or maybe
tag = Tag.arel_table Article.joins(:tags).where(tag[:name].matches_all(["foo", "bar"]))
You should use arel_table.
tag = Tag.arel_table Article.joins(:tags).where(tag[:name].in(["foo", "bar"]))
https://github.com/rails/arel/blob/master/lib/arel/predications.rb
or maybe
You should use arel_table.