On 7 Jan 2008, at 00:40, goodieboy wrote:
>
> 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...
>
Are you looking for content_for ?
Fred> 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
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---