title: Mongoid pagination
body: <p>I tried</p>
  
  <pre><code>@posts = Post.page(params[:page]).per_page(10)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@posts = Post.paginate(:page =&gt; 1, :per_page =&gt; 10)    
  </code></pre>
  
  <p>but neither method works</p>
  
  <pre><code>undefined method `page' for Post:Class
  
  undefined method `paginate' for Post:Class
  </code></pre>
  
  <p>How do you do pagination with mongoid?</p>