title: will_paginate gem rendering each entry 4 times rails
body: <p>I am using will_paginate with rails 4 and have the following code in my users controller:</p>
  
  <pre><code>def index
    @users = User.paginate(page: params[:page], :per_page =&gt; 10)
  end
  </code></pre>
  
  <p>and in my view:</p>
  
  <pre><code>&lt;% provide(:title, 'All users') %&gt;
  &lt;h1&gt;All Users&lt;/h1&gt;
  
  &lt;%= will_paginate %&gt;
  
  &lt;ul class="users"&gt;
    &lt;% @users.each do |user| %&gt;
       &lt;%= render @users %&gt;
    &lt;% end %&gt;
  &lt;/ul&gt;
  
  &lt;%= will_paginate %&gt;
  </code></pre>
  
  <p>This renders all the users however there are 40 per page, not 10. Each page has the correct users but 4 times. For example it renders users 1 .. 10 then 1 .. 10 again and so on. There are currently 101 users and if I set the per page limit to 1 it renders 101 pages with one user on each page as it should however any limit > 1 and it breaks.</p>
  
  <p>Any insight on how to fix it so only 10 users appear on each page would be much appreciated.</p>