I am working on a Rails 4 app in application.html.erb I have the following
code
....
<head>
<title>...</title>
<%= javascript_include_tag "application",
"data-turbolinks-track" =>
true %>
<%= yield :head %>
<%= csrf_meta_tags %>
</head>
What this does is allows me to load certain assets depending on the page I
am on. So maybe in the show template of a certain action I could do
something like
<% content_for :head do %>
<%= stylesheet_link_tag "show" %>
<% end %>
This works great and helps me keep the page structured clean and simple.
The issue I am having now is that turbolinks is completely ignoring these
assets and not even loading them when I click on a next link. I have looked
around but cant seem to find an answer to this problem. Any help will be
appreciated.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/545a6fcd-3522-4faa-8c45-306813be4327%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.