Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use Rails's Javascript remote calls on div.
(function($){
$(document).on('rails:attachBindings', function(){
$.rails.buttonClickSelector = $.rails.buttonClickSelector + ', div[data-remote]';
return true;
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment