Hi there! I''m just at the beginning of my development with ruby on rails, and yet i''m facing a problem. See, i got 4 dropdown lists on which give 4 different parameters for a single query to display a list of users ( 4 parameters to discriminate them ). For the will paginate plugin, there is the :conditions option which give me a hand, but it only can receive one condition! and the other 3? how can i do it? some hint? thanks in advance for the answers. Greetings Enzo Rivello -- 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 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Enzo,
The conditions is a hash, so you can put multiple conditions in it.
ie:
conditions => { :condition1 => value, :condition2 => value, etc }
Cheers
Simon
On Fri, 31 Oct 2008 09:11:26 +0900, Enzo Rivello  
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
>
> Hi there!
> I''m just at the beginning of my development with ruby on rails,
and yet
> i''m facing a problem.
>
> See, i got 4 dropdown lists on which give 4 different parameters for a
> single query to display a list of users ( 4 parameters to discriminate
> them ).
>
> For the will paginate plugin, there is the :conditions option which give
> me a hand, but it only can receive one condition!
> and the other 3? how can i do it? some hint?
>
> thanks in advance for the answers.
>
> Greetings
>
>
> Enzo Rivello
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---
thanks a lot!! :-) -- 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 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?hl=en -~----------~----~----~----~------~----~------~--~---