Forum: Ruby on Rails Multiple Paginate

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D38ed82faa0b3296a56c0f768f32ce57?d=identicon&s=25 Enzo Rivello (enzor)
on 2008-10-31 01:11
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
41cc2c53544016a86472343ab3fdc0ff?d=identicon&s=25 Simon Macneall (Guest)
on 2008-10-31 01:16
(Received via mailing list)
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
D38ed82faa0b3296a56c0f768f32ce57?d=identicon&s=25 Enzo Rivello (enzor)
on 2008-10-31 01:20
thanks a lot!! :-)
This topic is locked and can not be replied to.