title: undefined method `total_pages' for #<Array:0x8e052a0>, how to paginate correctly?
body: <p>I would be able to paginate easily but I'm using two models which complicates it a bit. </p>
  
  <p>First here's the controller</p>
  
  <pre><code>class BrowseController &lt; ApplicationController
  
  def index
      @hashtags = Hashtag.find(:all, :order =&gt; 'created_at DESC') 
      @posts = post.all
  end
  end
  </code></pre>
  
  <p>Then here's the view (browse\index.html.erb)</p>
  
  <pre><code>&lt;ul&gt; 
  &lt;% @posts.each do |post| %&gt;
  &lt;% if post.hashtags.present? %&gt;
  &lt;li&gt; &lt;%= link_to post.hashtags.map{|h| "##{h.hashtags}"}.join(', '), post.user %&gt; &lt;/li&gt; 
  &lt;% else %&gt;
  
   &lt;% end %&gt; 
   &lt;% end %&gt; 
  &lt;/ul&gt;
  </code></pre>
  
  <p>I'm trying to paginate that view. It's not just post, but the hashtag of the posts. What would be the correct <code>&lt;%= will_paginate %&gt;</code> code?</p>
  
  <p>I'm trying to paginate the hashtags of the posts, not just the posts themselves. </p>