title: Rails 4 - will_paginate and mongodb
body: <p>I'm getting a no method error when trying to implement pagination on my rails project.
  <code>undefined method 'paginate' for #&lt;Mongoid::Criteria:0x007fb256e54588&gt;</code><br/><br/>
  In my controller I have:<br>
  <code>@user = User.all.paginate(:page =&gt; params[:page], :per_page =&gt; 10)</code><br/>
  In my index.html.erb file I have <code>&lt;%= will_paginate @user %&gt;</code> above my html <code>&lt;table&gt;</code> tag and below the closing html <code>&lt;/table&gt;</code> tag<br/><br/>
  I have the will_paginate and mongoid-pagination gems installed properly. And I have tried restarting the dev server.. Am I missing anything else?</p>