Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

partial of collections with nil elements repeat previous value

#1250

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

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

State: resolved
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. DHH
    DHH
    • Milestone cleared.
    • Assigned user set to josh

    October 30th, 2008 @ 11:48 AM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [ec38c84ce1ff7f0888becc15e3f58337ca807e25]) Dup local assigns for partial collections so nil values doesn't get overwritten [#1250 partial of collections with nil elements repeat previous value state:resolved] http://github.com/rails/rails/co...

    October 30th, 2008 @ 08:08 PM