documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Multiple content/css/js rendering in rails 3 #72

Closed jgeiger closed 13 years ago

jgeiger commented 13 years ago

I'm getting an issue with content being rendered twice when I try to include data via a block. It might be a rails issue, but it manifests when I use jammit to render my css/js.

I created an app that demonstrates the issue. http://github.com/jgeiger/double_render_bug

This is also a bug that was filed with rails that I attached my app to since it seems to be very similar. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2279-render-layout-with-block-and-multiple-yields#ticket-2279-15

jashkenas commented 13 years ago

If you put something inside of that admin_only block that isn't a Jammit tag, does it get double-rendered as well?

jgeiger commented 13 years ago

Sigh. I should have gone a bit further. This has nothing to do with jammit it seems. My bad.