So I\'m trying to create a load more button (not infinite scroll although some simple js tweaks could make it so). I\'m using the will_paginate gem in Rails 5.
Its curre
So it was a stupid error of course.
Remove the line on index.html.erb:
:remote => true if @links.next_page
So now it looks like this:
<%= render @links %> <% if @links.next_page %> <%= link_to 'Load More', links_path(:page => @links.next_page), :class => 'next_page' %> <% end %>
All works fine now!