# Acts\_as\_ferret and Will\_paginate

**URL:** <https://www.ruby-forum.com/t/acts-as-ferret-and-will-paginate/189829>\
**Category:** Ferret\
**Created:** [June 8, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-will-paginate/189829 "2010-06-08T15:28:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paradise](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8e7dd6/32.png) [@paradise](https://www.ruby-forum.com/u/paradise)\
**Post date:** [June 8, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-will-paginate/189829/1 "2010-06-08T15:28:09Z")

</div>

I am running acts\_as\_ferret and will\_paginate 2.3.11, I have the  
following code in  
controller  
@ads = Ad.find\_with\_ferret(params[:q]+"~", :page =\> params[‘page’],  
:per\_page =\> 10)

View  
\<removed\_email\_address@domain.invalid do |@ad|%\>

 \<%= render :partial =\> 'content',:collect =\>@ads -%\> 
\<%end%\>

\<%= will\_paginate @ads %\>

The problem is it only paginates first page of results and I can’t see  
beyond the first page of results, (even if there is more than one page  
of results)

Am getting nil value for page 2…3…next and so on

Any help would be greatly appreciated
