[ruby-on-rails] Rails get index of "each" loop