On Aug 22, 7:35 am, Rails List <[email protected]>
wrote:
> i have something like
>
> @a = Model.find(:all)
>
> for a in @a
>   here i need to know what is my current index / row
> end

I would use each_with_index if I were you.

Fred

>
> how do i get it?.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to