So I have this loop:

<% @images.each do |page| %>

<% end %>

How would I get the index of “page” inside of the loop?

3 Answers
3

Leave a Reply

Your email address will not be published. Required fields are marked *