Over on ruby on rails talk, Eric Ly noted that partial counters now
begin at 1 instead of 0.
As far as I can tell this is because previously the counter value came
straight out of each_with_index. However now the PartialTemplate
starts off with a counter value of 0 and we += it before the render.
Unfortunately it doesn't look like there was a test for this in 2.0 so
it's not surprising this snuck through.
Can it be put back to the way it was or is the disruption of it
changing a second time in 2.1.x more trouble than it's worth?
Fred
Can it be put back to the way it was or is the disruption of it
changing a second time in 2.1.x more trouble than it's worth?
Yeah, it should be reverted to start at zero just like it used to.
Open a lighthouse ticket for it and we'll get it into 2.1.1
Can it be put back to the way it was or is the disruption of it
changing a second time in 2.1.x more trouble than it's worth?
Yeah, it should be reverted to start at zero just like it used to.
Open a lighthouse ticket for it and we'll get it into 2.1.1
did that here: #344 Partial counters start from 1 in 2.1 - Ruby on Rails - rails
Fred