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.
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.
On 4/23/07, Magicloud [email protected] 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.
Oh, just like it used to be…
Thanks.
Daniel N дµÀ£º
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs