# How to use will\_paginate and ambition together?

**URL:** <https://www.ruby-forum.com/t/how-to-use-will-paginate-and-ambition-together/132306>\
**Category:** Rails\
**Created:** [March 19, 2008, 1:00am UTC](https://www.ruby-forum.com/t/how-to-use-will-paginate-and-ambition-together/132306 "2008-03-19T01:00:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g0nzo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3bc359/32.png) [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Post date:** [March 19, 2008, 1:00am UTC](https://www.ruby-forum.com/t/how-to-use-will-paginate-and-ambition-together/132306/1 "2008-03-19T01:00:30Z")

</div>

Hi,

I need to add filtering to my app. Long time ago I was using ez\_where  
plugin, but it seems that there’s ambition now. I’m already using  
will\_paginate for pagination and was wondering if it’s possible to use  
them together.

Also in ez\_where I could do something like this:

cond = Caboose::EZ::Condition.new do  
foo == ‘bar’ unless params[:filter][:country].blank?  
baz \<=\> (1…5) if something  
end

Is it possible to do something similar in ambition? I.e. if  
params[:filter][:country] == “”, I don’t want to include it in the  
condition.

Thanks for any tips
