title: Rails3/will_paginate/Ajax - next/previous link doesn't work properly (is it a bug?)
body: <p>I am following the "<a href="http://railscasts.com/episodes/174-pagination-with-ajax" rel="nofollow">Pagination with ajax</a>" railscast for my rails 3 application. Everything seems to work great, except the fact that Previous and next links don't work at all.</p>
  
  <p>Basically,     </p>
  
  <ul>
  <li><p>It appears that the previous link is stuck even if I click on other pages, (when I am on the user/show page1)</p></li>
  <li><p>The "next link" works one time till the page 2 (I can't use it after)</p></li>
  <li><p>Numbers didn't update when I come to "..."</p></li>
  </ul>
  
  <p>I would be pleased to know if someone experience the same problem (a bug?) or if my code is wrong.
  I use will paginate ("~> 3.0.pre2"and jquery 1.8.10) for a list of microposts dependent to users.</p>
  
  <p>Thanks a lot for your help!</p>
  
  <p>here the code:</p>
  
  <h1>layout_helper.rb</h1>
  
  <pre><code>module LayoutHelper
    def javascript(*args)
      content_for(:head) { javascript_include_tag(*args) }
    end
  end
  </code></pre>
  
  <h1>users_controller.rb</h1>
  
  <pre><code>def show
      @user = User.find(params[:id])
      @microposts = @user.microposts.paginate(:per_page =&gt; 10, :page =&gt; params[:page])
  end
  </code></pre>
  
  <h1>microposts/_micropost.html.erb</h1>
  
  <pre><code>...
  </code></pre>
  
  <h1>users/show.html.erb</h1>
  
  <pre><code>&lt;% javascript "pagination" %&gt;
  
  ...
  
  &lt;%= will_paginate @microposts %&gt;
    &lt;ul id="feed_items"&gt;
      &lt;%= render @microposts %&gt;
    &lt;/ul&gt;
  </code></pre>
  
  <h1>users/show.js.erb</h1>
  
  <pre><code>$("#feed_items").html("&lt;%= escape_javascript(render @microposts ) %&gt;");
  </code></pre>
  
  <h1>pagination.js</h1>
  
  <pre><code>$(document).ready(function() {
    $(".pagination a").live("click", function() {
      $.get(this.href, null, null, "script");
      return false;   
    });
  });
  </code></pre>