I know that I can do a query for recent books based on an array as in
scope :recent_books, lambda {|since_dt| {:conditions=>{:created_at >= since_dt}}}
but how can I do a similar query when I have an array of items, e.g. what if I want to know if there any records that match the dates in an array of [date1, date2, date3, etc.]
I think there must be a collect/inject/select/map y method that'll do it but I am not sure which from reading them.
named_scope
, would the lambda approach work ok in rails2? Thx, Michael. – Ingather