Joined November 2017
·

pedroadame

Typo:
The variable name is not #{partial_name}_counter, in fact it is #{variable_name}_counter
<%= render partial: "post", collection: @posts %> makes the counter post_counter.
<%= render partial: "my_partial", collection: @items, as: :item %> makes the counter item_counter.

Achievements
1 Karma
0 Total ProTip Views