This project is archived and is in readonly mode.

#1250 ✓resolved
jdwyah

partial of collections with nil elements repeat previous value

Reported by jdwyah | October 22nd, 2008 @ 07:12 PM

Bumped into this when rendering a collection that had some nils in it.

On 2.2 Edge

tester.html.haml: = render :partial => 'test', :collection => [1,nil, 2,3,nil,nil]

_test.html.haml: = test

Expected Output: 1 2 3

Actual output: 1 1 2 3 3 3

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

Tags

Referenced by

Pages