manu
Tue Aug 28 2018
when rendering rails partial with collection, rails provides a counter variable which can be accessed by title of the partial followed _counter. For eg: if the partial is called
Reference: https://guides.rubyonrails.org/layouts_and_rendering.html#local-variables
apple
, then counter variable is called apple_counter
.Reference: https://guides.rubyonrails.org/layouts_and_rendering.html#local-variables