This project is archived and is in readonly mode.
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
-
DHH October 30th, 2008 @ 11:48 AM
- Milestone cleared.
- Assigned user set to josh
-
Repository October 30th, 2008 @ 08:08 PM
- State changed from new to resolved
(from [ec38c84ce1ff7f0888becc15e3f58337ca807e25]) Dup local assigns for partial collections so nil values doesn't get overwritten [#1250 state:resolved] http://github.com/rails/rails/co...
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
- 1250 partial of collections with nil elements repeat previous value (from [ec38c84ce1ff7f0888becc15e3f58337ca807e25]) Dup loc...