I have a rails application using turbolinks
one page i should load script, and i don't want load it on all the application
specific add it on page like that
<% content_for :head do %> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> <% end %>
my problem is while i enter to page via turbolinks the script doesn't load
how can i load single js on specific page
thanks!
data-turbolinks-track="true"
in yourscript
tag. I was in the similar situation, and doing so fixed the issue.