p = Person.find_by_id(1, :include => :bags, :conditions => ['bag.id in (?), [3,4])
I would like to know how I could make sure this query will only be valid if both 'items.id' '3' & '4' are present rather than '3' or/and '4'.
Thanks
p = Person.find_by_id(1, :include => :bags, :conditions => ['bag.id in (?), [3,4])
I would like to know how I could make sure this query will only be valid if both 'items.id' '3' & '4' are present rather than '3' or/and '4'.
Thanks