content_for head tag doesn't work (ruby on rails) -
<% content_for :head %> <%= javascript_include_tag "http://code.jquery.com/jquery-latest.min.js" %> <% end %>
it doesn't work.
how insert html head tag?
thanks.
do have <%= yield :head %>
inside <head>
tag (probably in layouts/application.html.erb)? no? add :).
Comments
Post a Comment