GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6607
Created by Victor Lin - 2011-03-22 22:39:21 UTC
If you yield to an ERB block within a view helper, the result of the yield will be the output buffer (unless you explicitly yield/return in your ERB template). I'm not sure this is a bug per se, but it is rather surprising behavior.
Imported from Lighthouse.
Comment by Andrew White - 2011-03-23 18:18:59 UTC
I think what you're seeing is the consequence of this change in Rails 3. Does the article make things clearer?
#948 make template inheritance optional