How to put multiple contents in one layout?

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.

Oh, just like it used to be....
Thanks.
Daniel N 写道: