This project is archived and is in readonly mode.

#4139 ✓resolved
Denis Odorcic

[PATCH] Rails 3 prototype_helper causes exception when content_tags are nested within blocks

Reported by Denis Odorcic | March 10th, 2010 @ 07:31 AM

Note: This is in Rails 3
The prototype_helper initializes a JavaScriptGenerator and passes in an empty array to with_output_buffer.
If a content_tag is passed into another content tag via a block, the output_buffer is set to an empty array, which then tries to call 'encoding' on it and fails.

I've attached a failing test, and a patch to make the test pass.

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=""></a>