chris-OIzkuoyqg0kAvxtiuMwx3w@public.gmane.org
2006-Aug-22 07:32 UTC
[Rails] Re: Problem with find conditions
Curtis Summers wrote:> For case of finding any included feature, shouldn''t the condition be the > following? > > :conditions => [ "feature_id IN (?) ", feature_ids.join('','') ]ActiveRecord does that automagically for you if you pass it an array. Chris --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---