# inside rhtml file <% content_for :head do %> <% end %> # inside layout file <%= yield :head %> # results in the following being rendered