Skip to content

Instantly share code, notes, and snippets.

@fiedl
Created September 15, 2013 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiedl/6573175 to your computer and use it in GitHub Desktop.
Save fiedl/6573175 to your computer and use it in GitHub Desktop.
"Hack" that dynamically loads the [gmaps4rails google api](https://github.com/apneadiving/Google-Maps-for-Rails) when using [turbolinks](https://github.com/rails/turbolinks/).
@Startouf
Copy link

Startouf commented May 3, 2016

You can write $(document).on('ready page:load turbolinks:load') (The last one is for turbolinks 5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment