Unless someone can convince me otherwise, I hereby formally wish for nested layouts without using inheritance.  For example:

<pre>
class FooController < ActionController::Base
    layout 'layout/outside'
    layout 'layout/inside'
end
</pre>

Thoughts?

<hr />

This is one of my wishes too.

Currently I handle this by wrapping a template that requires an inside layout with:

<pre>
<% @content_for_inner_layout = capture do %>
</pre>

and

<pre>
<% end %>

<%= render 'layouts/inner_layout', { 'content_for_inner_layout' => @content_for_inner_layout } %>
</pre>

Then do the actual wrapping of the template by including:

<pre>
<%= @content_for_inner_layout %>
</pre>

where it needs to be within the inner layout.

Is there a better way to handle this?
