I think you can do it the other way around, do the find on the items, where the item id is in one of the set. Then the orders you are looking for are the ones in the returned rows as item.order. Then you just need to select the unique orders.
Colin 2009/5/11 Serafino Picozzi <[email protected]> > > 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 -~----------~----~----~----~------~----~------~--~---

