Hidden Counter in partials

Some time we need counter in inside partials , so rails provides an iteration counter automatically to template which can be easily accessed with partial name and counter means “partial_file_name_counter” thus the easy way to deal with counter in partial files …

Advertisements