Skip to content

Instantly share code, notes, and snippets.

@samueljseay
Created October 24, 2013 21:26
Show Gist options
  • Save samueljseay/7145313 to your computer and use it in GitHub Desktop.
Save samueljseay/7145313 to your computer and use it in GitHub Desktop.
Make your jQuery code play nice with Rails TurboLinks.
$(document).on("page:load",function(){
//do ALL THE THINGS :D
//see http://stackoverflow.com/questions/17386740/rails-4-turbolinks-and-jquery-dynamic-links-not-playing-nice
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment