This project is archived and is in readonly mode.

#3298 ✓stale
Erik Ostrom

render :text with no layout fails when called from view or helper

Reported by Erik Ostrom | September 28th, 2009 @ 07:00 PM

In master:

<%= render :text => 'Hello world!' %>

produces no output. Likewise when you call render :text from a helper.

This example is contrived, but it seems like for consistency it should work.

My patch for #3260 includes a fix for this, but here's a new patch that isolates the fix and provides a test.

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>

Attachments

Pages