Tag Archives: unobtrusive

Unobtrusive javascript with Rails 2.3.5

This is my handy little bit of javascript to make it easier to do UJS in Rails 2.3.5. Create a file within your public/javascripts folder called ajax.js containing the following: //unobtrusive javascript replacements //setup for format.js block $.ajaxSetup({ ‘beforeSend’: function(xhr) … Continue reading

Posted in Development, Javascript | Tagged , , , , , | Leave a comment