`

content_for 占位的使用

阅读更多
content_for   占位的使用
content_for :head do
  .....
end
<%= yield :head %>

  def js(*file_name)
    content_for :head do
      javascript_include_tag(*file_name)
    end
  end
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics