Skip to content

Instantly share code, notes, and snippets.

@fiedl
Created September 15, 2013 18:26
Show Gist options
  • 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