title: Kaminari & Rails pagination - undefined method `num_pages'
body: <p>Here's my controller:</p>
  
  <pre><code>def show        
      @user = User.find(params[:id])
      @microposts = @user.microposts.page(params[:page])
  end
  </code></pre>
  
  <p>This is working fine if I dont add following code to show.html.erb:</p>
  
  <pre><code>&lt;%= paginate @microposts %&gt;
  </code></pre>
  
  <p>Its giving following error:</p>
  
  <pre><code>undefined method `num_pages' for #&lt;ActiveRecord::Relation:0x007fc2ca54b228&gt;
  </code></pre>
  
  <p>How can I fix this? Using Rails 3.2.8 &amp; Kaminari 0.13.0</p>