[Masterview-users] how to share header / layout across controllers

Jeff Barczewski
Mon, 08 Jan 2007 22:18:06 -0000

On 1/8/07, Ed Howland <ed.howland at gmail.com>
wrote:
>
>
> Just a small notation about the documentation on the MV site. It says
> to use   @content_for_layout in the mv:replace (or mv:content
> sometimes.) The Rails API says this is deprecated in favor of yield.
> I''ve tested this with yield and the change is painless so far.
>
> Basically, it seems they are eliminating the @content_for subsystem. I
> guess to speed up rendering.
>
>

Yes, you are correct Ed. Yield is the recommended way to do things now.
We''ll plan on updating the docs and the generator accordingly. Thanks
for
mentioning it.

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...