Assets in the head?

All the examples I see, AWDWR, the forums, have the use of
"stylesheet_link_tag" in the <head> section of the template.
Similarly for javascript.

But if my template is including partials for actions, those action might
require a stylesheet or javascript that is specific only to them.

For example, the tinyMCE javascript isn't needed in index or show or
delete, but is needed in edit.

Is there way in the action-specific partial to specify an asset tag
that somehow magically gets rendered in the <head> ?

All the examples I see, AWDWR, the forums, have the use of
"stylesheet_link_tag" in the <head> section of the template.
Similarly for javascript.

But if my template is including partials for actions, those action might
require a stylesheet or javascript that is specific only to them.

For example, the tinyMCE javascript isn't needed in index or show or
delete, but is needed in edit.

Is there way in the action-specific partial to specify an asset tag
that somehow magically gets rendered in the <head> ?

Yes, assuming those partials render with the layout (not by themselves via ajax say).

layout:
... <head>
   <%= yield :headstuff %>
</head>
...

partial:
...
blah blah
...
<% content_for 'headstuff' do %>
   this will end up in the head...
<% end %>
...