render :partial, :collection
render :partial => 'hoge', :collection => @items
とかするときに,_hoge.rhtml 内で
<%= hoge_counter %>
で何回目のコレクションか取れるのね知らなかった.
render :partial => 'hoge', :collection => @items
とかするときに,_hoge.rhtml 内で
<%= hoge_counter %>
で何回目のコレクションか取れるのね知らなかった.