【发布时间】:2014-05-17 10:17:13
【问题描述】:
<% content_for :head do %>
<%= javascript_include_tag "http://code.jquery.com/jquery-latest.min.js" %>
<% end %>
它不起作用。
如何将html插入head标签?
谢谢。
【问题讨论】:
-
你的
head tag中有<%= yield :head %>在你的Layout中吗?
标签: ruby-on-rails ruby