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
If you check the server console, you can actually see two requests coming in, one triggered by your :remote => true enabled link and other from your custom ajax. Actually you don't need any js to make this work. Just remove that click function from your pagination.js.coffee or remove :remote => true from the link. After all both are doing the same thing. Hope this will help.