views/layoutsにlayout用rhtmlファイルを用意し、<%= @content_for_layout %>で埋め込むことができるんだけど、javascriptなどを使っていて、どうしてもheaderに埋め込みたい場合は、<%= @content_for_
layoutのファイルには
<html>
ってしておいて、埋め込みたいviewに
<head>
<title>タイトル</title>
<%= @content_for_header %>
</head>
<body>
<%= @content_for_layout %>
</body>
</html>
<% content_for(:header) do %>
ってしておくと、header内に埋め込まれる
<%= javascript_include_tag "prototype" %>
<% end %>