counter variable not working?
- by jaycode
Just like many things in rails, sometimes it works, sometimes it doesn't...
Showing app/views/admin/products/_variant.html.erb where line #8 raised:
undefined local variable or method `variant_counter' for #<ActionView::Base:0x107f7ae10>
I only want to display variant_counter from partial _variant. This was the render caller code:
<%= render :partial => '/admin/products/variant', :collection => product.variants %>
The funny thing is, I have been using partial counter heaps number of times, somehow now I encountered this issue.
Could anybody point me out what are there to find out what may went wrong?