Hi,
I'm hoping to get some tips on how I could do this. I want a helper, called "layout", which will take the contents of the current action (not including the layout set by controller) and put it inside of another layout. As simple as:
example.html,erb <% layout 'sub_layout_1' %> Everything here would get put inside of the sub_layout_1 layout, including any partials I use...
I used to do this in PHP with either a call back handler to the layout helper, or in a register_shutdown_function, both using output buffering.
Does anyone know how I could do this? I actually have NO idea, but am hoping to find something.
Matt