title: Ruby/Rails - kaminari undefined method pagination errors
body: <p>I'm not sure what I did, but kaminari has started acting weird in my app.</p>
  
  <p>In my controller:  </p>
  
  <pre><code>@producers = Producer.order(:name).page(params[:page])
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>&lt;%= paginate @producers %&gt;
  </code></pre>
  
  <p>results in:  </p>
  
  <pre><code>undefined method `num_pages' for #&lt;ActiveRecord::Relation:0x000001026e6308&gt;
  </code></pre>
  
  <p>If I add .per in my controller:  </p>
  
  <pre><code>@producers = Producer.order(:name).page(params[:page]).per(25)
  </code></pre>
  
  <p>I get  </p>
  
  <pre><code>undefined local variable or method `per' for #&lt;ActiveRecord::Relation:0x0000010928ef60&gt;
  </code></pre>
  
  <p>Finally, strangely, if I move my <code>.order(:name)</code> to the end, it works:</p>
  
  <pre><code>@producers = Producer.page(params[:page]).order(:name)
  </code></pre>
  
  <p>I'm guessing some other gem I have installed has a <code>page</code> scope or method that's causing problems?  </p>
  
  <p>Thanks.</p>