How to use will_paginate and ambition together?


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 = do
foo == ‘bar’ unless params[:filter][:country].blank?
baz <=> (1…5) if something

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

Thanks for any tips