-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turbolinks best practices #390
Comments
I had this before. You can set data_no_turbolinks => false in your 'back' and redirect link options |
I was kind of hoping to use Turbolinks. It was working with this fork before: |
There is nothing more to do with gmaps4rails than with other js resources. I dont know turbolinks (and I wont dig, it's a terrible idea... Ok it's not the debate). Basically insert google scripts in all your pages, you'll be fine. |
That works. Thanks! |
Is this what you mean by "insert google scripts in all your pages"? app/views/layouts/application.html.erb
app/assets/javascripts/application.js
|
Yes. |
I'm using Turbolinks, which is standard for Rails 4.
When I do a full reload refresh, the page works fine, but if I'm coming from another page, I'm getting the the dreaded "Uncaught ReferenceError: google is not defined".
On the bottom of my show.html.haml, I have:
Wouldn't it be easier just to add these javascript files to the asset pipeline like we do with gmaps/google?
The text was updated successfully, but these errors were encountered: