==layout: application.rhtml==
<head>
... //head在這
<%= yield :page %>
</head>
<body>
<%= render :partial => 'not_include' %> // 到body才去生這個partial
</body>
==partial: not_include.rhtml==
<% content_for :page do%>
<%= javascript_include_tag "hope_in_head" %> // 想要生在head裡, 可是head早就生完了
<% end %>
沒有留言:
張貼留言