title: undefined method `paginate' for #<Array:0x0000000764d1b8>
body: <p>This my code in the index controller.  </p>
  
  <pre><code>order_customs = Order.select{|order| order.performer.white_label_id==1}
  @orders_customs_display=order_customs.paginate(:page =&gt; params[:page], :per_page =&gt; 5)     
  @orders_customs_refunded=order_customs.select{|order| order.refunded==true}.paginate(:page =&gt; params[:page], :per_page =&gt; 5)
  order_white_label=Order.select{|order| order.performer.white_label_id!=1}
  @orders_white_label_display=order_white_label.paginate(:page =&gt; params[:page], :per_page =&gt; 5)
  @orders_white_label_refunded=order_white_label.select{|order| order.refunded==true}.paginate(:page =&gt; params[:page], :per_page =&gt; 5)      
  </code></pre>
  
  <p>I am using will_paginate gem for pagination. I was using it before without any error but when I changed the code from <code>Order.all.paginate()</code> to <code>Order.select{}.paginate()</code> error is coming.   </p>
  
  <p>The error I am getting is </p>
  
  <blockquote>
    <p>undefined method `paginate'</p>
  </blockquote>
  
  <p>I need to paginate those values for showing them in a table. If I can't paginate them, is there a workaround?</p>