title: Refresh the data of current page in Kaminari
body: <p>I am using the <a href="https://github.com/kaminari/kaminari" rel="nofollow noreferrer">Kaminari</a> library for the pagination of some records. These are the files I use.</p>
  
  <p><strong>views/users/show.html.haml</strong></p>
  
  <pre><code>%table.table.table-striped
  %thead
    %tr
      %th Lead ID
      %th Date/Time
      %th Property Address
      %th Connection
      %th Response Time
  %tbody#showings
    = render '/showings/list', showings: @showings
  #paginator
      = paginate @showings, remote: true, params: {controller: "showings", action: 'index'}
  </code></pre>
  
  <p><strong>views/showings/_list.html.haml</strong></p>
  
  <pre><code>- showings.each do |showing|
    %tr
      %td= showing.id
      %td= showing.created_at_formated
      %td= showing.address
      %td= showing.connected?
      %td= showing.reply_time_mins_secs
  </code></pre>
  
  <p><strong>ShowingsController</strong></p>
  
  <pre><code>class ShowingsController &lt; ApplicationController
    def index
      @showings = Showing.all.page(current_page)
    end
  end
  </code></pre>
  
  <p><strong>views/showings/index.js.erb</strong></p>
  
  <pre><code>$('#paginator').html('&lt;%= escape_javascript(paginate(@showings, :remote =&gt; true).to_s) %&gt;');
  $('#showings').html('&lt;%= escape_javascript(render "/showings/list", showings: @showings) %&gt;');
  </code></pre>
  
  <p>So, I need to be able to refresh the data for the current page being displayed. Is it possible to refresh de data using AJAX or JQuery? Only #paginator and #showings sections. Currently, when I press the button of the current page nothing happens.</p>