mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
1f5b360466
The iteration object is available as the local variable "template_name_iteration" when rendering partials with collections. It gives access to the +size+ of the collection beeing iterated over, the current +index+ and two convinicence methods +first?+ and +last?+ "template_name_counter" variable is kept but is deprecated. [Joel Junström + Lucas Uyezu] |
||
---|---|---|
.. | ||
bad_customers | ||
customers | ||
fun/games | ||
good_customers | ||
layout_tests | ||
layouts | ||
quiz/questions | ||
test | ||
hello.html | ||
shared.html.erb |