Phone.where("area_code in (?) and number in (?)", [440,441,443],
[23233233,23231212,12121212])

2012/4/24 Rafael C. de Almeida <almeida...@gmail.com>

> On Apr 24, 5:34 am, vishal singh <vishal.singh...@gmail.com> wrote:
> > Hi,
> >
> > Phone.find(:all, :conditions=>["area_code in ? and number in
> > ?",(555,533),(533,12345678)])
> >
>
> That wouldn't work. That would match the phone
> {area_code:'533',number:'533'}. I want to match only (555, 533) or
> (533, 12345678).
>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
att,

Rogerio

A complicação se descomplica na mesma proporção que fazemos os nós se
desatarem ao tecer o conhecimento do saber.

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to