How about using concatenation in your query? Walter
On Apr 24, 2012, at 1:11 PM, "Rafael C. de Almeida" <[email protected]> wrote: > On Apr 24, 2:55 pm, Rogerio Medeiros <[email protected]> wrote: >> Phone.where("area_code in (?) and number in (?)", [440,441,443], >> [23233233,23231212,12121212]) > > That would match phone (440) 12121212. In that situation, I'd like to > match (440) 23233233, (441) 23231212 and (443) 12121212. However I > would not like to match (440) 12121212. > > -- > 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. > -- 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.

