From: Kaya Aykut Date: 2010-07-29T07:24:14+09:00 Subject: how to determine array element number in a each loop Hello all, newbie here. The title is quite self explanatory: I am in dummy_array.each do |a| #code here end and I want to know which element (the number n in nth element) of the dummy_array. Thanks in advance :-) -- Posted via http://www.ruby-forum.com/.