Bharat Ruparel wrote: > I think that the condition that you are looking for is: > > :condition => item.id in (2,4,6,11,...etc.)
Thanks for your answer. This performs a OR, find all Ordrers having at least one of the ids specified inside IN() . -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

