This project is archived and is in readonly mode.

#1383 ✓resolved
Luke Melia

render_to_string :inline before normal render causes assert_template failures

Reported by Luke Melia | November 16th, 2008 @ 05:09 AM | in 2.x

When render_to_string :inline => ... is called in a controller action a normal template render later occurs, the response.template's @_first_render variable is set to an instance of InlineTemplate rather than the file-based template that was rendered and returned in the response.

The attached patch causes render_to_string to reset @_first_render to nil when it is set to an InlineTemplate.

This caused failures in my application test suite upon upgrading to the 2.2 branch.

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>

People watching this ticket

Attachments

Referenced by

Pages