title: will_paginate & filterrific: undefined method `total_pages' for #<Array:0x007f9f6b4a3320>
body: <p>I'm trying to use <a href="https://github.com/mislav/will_paginate" rel="nofollow">will_paginate</a> in conjunction with <a href="https://github.com/jhund/filterrific" rel="nofollow">filterrific</a>. But I'm getting the following error:</p>
  
  <blockquote>
    <p>undefined method `total_pages' for # Array:0x007f9f6b4a3320></p>
  </blockquote>
  
  <p>My controller action:</p>
  
  <pre><code>  def index
      @filterrific = initialize_filterrific(
        current_user.assessments,
        params[:filterrific],
        :select_options =&gt; {
          sorted_by: Assessment.options_for_sorted_by      },
          :persistence_id =&gt; false,
      ) or return
      @assessments = @filterrific.find.page(params[:page]).paginate(page: params[:page], per_page: 10).sort_by &amp;:created_at
      @assessments.reverse!
    end
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;%= render(
    partial: 'list',
    locals: { assessments: @assessments }
  ) %&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Partial:</p>
  
  <pre><code>&lt;div id="filterrific_results"&gt;
  
  
  
      &lt;% @assessments.each do |assessment| %&gt;
      ....
      &lt;% end %&gt;
  
  &lt;/div&gt;
  
  
  &lt;%= will_paginate assessments %&gt;
  </code></pre>
  
  <p>Where am I going wrong? </p>