Last Updated: February 25, 2016
·
706
· oswaldoferreira

Loading Javascript document on load when using Turbolinks

function initialize() {
  alert('Welcome, Deputy! Check back often for new zombie sightings!');
}

$(document).ready(initialize);
$(document).on('page:load', initialize);