test_app/app/assets/javascripts/application.js in paloma-4.1.2 vs test_app/app/assets/javascripts/application.js in paloma-4.2.0

- old
+ new

@@ -50,5 +50,18 @@ var NotFoos = Paloma.controller('NotAdmin/Foos'); NotFoos.prototype.show = function(){}; NotFoos.prototype.otherAction = function(){}; + + +$(document).ready(function(){ + $('#js-ajax-link').on('click', function(e){ + e.preventDefault(); + + $.get($(this).prop('href'), function(response){ + $('#js-ajax-response').html(response); + Paloma.executeHook(); + Paloma.engine.start(); + }); + }); +});