<%= paginate collection %>
<%= form_tag({ :action => "index"}, { :method => "get", :id => "js-per-page-form", :class => 'form-inline' }) do %> <%= per_page_dropdown %> <% end %>
<% content_for :head do %> <%= javascript_tag do %> $(document).ready(function() { $("#js-per-page-select").change(function() { $("#js-per-page-form").submit(); }); }); <% end %> <% end %>