title: Kaminari with AJAX, unable to paginate
body: <p>I've followed the AJAX Kaminari example here: <a href="https://github.com/amatsuda/kaminari_example/tree/ajax" rel="nofollow noreferrer">https://github.com/amatsuda/kaminari_example/tree/ajax</a></p>
  
  <p>I've successfully generated the partial and table. However, pressing the pages in the pagination does not update my table. In fact, upon pressing, the queries are the exact same data.</p>
  
  <p>I found a similar problem, however the solution remains unanswered:
  <a href="https://stackoverflow.com/questions/5518616/kaminari-ajax-pagination-not-updating-the-paginate">kaminari ajax pagination not updating the paginate</a></p>
  
  <p>I can verify that I am using the #paginator element.</p>
  
  <p>Some things I did do differently were instead of creating a separate js.erb file, I added </p>
  
  <pre><code>&lt;script&gt;
  
  $('#paginator').html('&lt;%= escape_javascript(paginate(@pending_requests, :remote =&gt; true).to_s) %&gt;');
  $('#requests').html('&lt;%= escape_javascript render (@pending_requests) %&gt;');
  
  &lt;/script&gt;
  </code></pre>
  
  <p>at the end of the of my html.erb file.</p>
  
  <p>Also, in a view, I use an ajax request to select different data within the table. For example, I have a select_tag which upon selecting a user, the appropriate table is rendered using AJAX in the view. The table isn't a partial, it has its own view and method in the controller. At first I suspected that because of this, the table wasn't being updated. However, if I go to the table url, I am still unable to use pagination!</p>
  
  <p>Edit: I am able to right-click the pagination links and open them to another tab. Clicking on them still doesn't do anything.</p>
  
  <p>EDIT:</p>
  
  <p>I wanted to add that I'm using Twitter Bootstrap. I noticed that if I set in my controller</p>
  
  <pre><code>format.html { render :layout =&gt; false }
  </code></pre>
  
  <p>Then I open one of the pagination links to another page, I can successfully paginate. I am using the Kaminari bootstrap theme however...</p>