How to put multiple contents in one layout?


#1

Dear all,
When I used “content_for”, I can easily make a page show bot TOC
and text. Now I am using “yield”, how to do the same thing?

Thanks.


#2

On 4/23/07, Magicloud removed_email_address@domain.invalid wrote:

Dear all,
When I used “content_for”, I can easily make a page show bot TOC
and text. Now I am using “yield”, how to do the same thing?

Thanks.

In your partial use

contet_for :my_section do

end

then in your layout

yield :my_section

I think that should get you out of trouble.


#3

Oh, just like it used to be…
Thanks.
Daniel N дµÀ£º