Suppose I have an application layout, and in their I yield for :head content as follows:
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title></title>
<%= stylesheet_link_tag 'scaffold' %>
<%= yield(:head) %>
</head>
Suppose in that same application layout I call a partial to render the main menu.
<body>
<p style="color: green"><%= flash[:notice] %></p>
<!-- Main Menu -->
<%= render :partial => 'menu/menu_main' %>
</body>
Is there any way, from within my _menu_main.erb partial to add content to the :head section of my application layout (say to add some css)?