This project is archived and is in readonly mode.
yield in view helpers behaves unexpectedly
Reported by Victor Lin | March 22nd, 2011 @ 10:39 PM
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.
Comments and changes to this ticket
-
Victor Lin March 23rd, 2011 @ 06:25 AM
- Tag set to yield views erubis erb helper
-
Victor Lin March 23rd, 2011 @ 06:25 AM
- Tag changed from yield views erubis erb helper to erubis, helpers, views, yield
-
Andrew White March 23rd, 2011 @ 06:18 PM
- Importance changed from to Low
I think what you're seeing is the consequence of this change in Rails 3. Does the article make things clearer?
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>