It appears that the new partial layouts don't work in conjunction with content_tag_for. The call to render with :template doesn't return anything if the template uses content_tag_for.
See this blog post for how I'm trying to use them:
http://opensoul.org/2007/8/3/edge-rails-gets-layouts-for-partials
(note to self, don't blog code snippets that you haven't tested)
After a quick glance at the code, I'm guessing it's due to #render and #content_tag_for using #capture, and a quick informal test shows that nesting capture calls does return nothing.
Would the ideal solution to this be to make capture work with nested calls?
Brandon
PGP.sig (186 Bytes)