So i'm coming from a coldfusion experience background and when dumping db results to screen there is a method called 'current_row' that will give me the index number of the current record.

Is there something already built into ruby or rails that does the same thing or is this something I have to write myself?