I\'m looking to write an ActiveRecord query and this is what I have below. Unfortunately you can\'t use OR like this. What\'s the best way to execute? category_ids<
category_ids<
One way is to revert to raw sql...
YourModel.where("categories.id IN ? OR category_relationships.category_id IN ?", category_ids, category_ids)