I have a similar problem. Upgrading to Rails 2.2.2 from 2.1.2 i've lost all view components that are inserted with content_for.
The content_for call sits inside a view helper, which in turn is used inside the view (eg http://railscasts.com/episodes/30-pretty-page-title). If i move the content_for call to inside the view it works fine. Any ideas out there? On Nov 23, 6:20 pm, phil <[EMAIL PROTECTED]> wrote: > I have a partial that has a couple of content_for blocks in it. This > works fine if I render it from a view that will in itself get rendered > view yield :layout. But, if I try and render it directly from the > application layout none of the content_for stuff gets interpreted. > > Two questions > 1) Is this right? > 2) If so, how can I always include a partial inside of my views then? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---