This project is archived and is in readonly mode.

#6607 new
Victor Lin

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

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>

Pages