eachループしつつ、それぞれデータに番号を振り分けて全体で何番目という風な記述にしたい場合に何か良いのがないか探してみたところ
便利なeach_with_indexというメソッドを見つけることができましたのでアウトプットがてら紹介したいと思います。
each_With_indexの使い方
ruby.html.erb
<% @users.each_with_index do |user, i| %>
<%= "#{user}は、 #{i+1}位:" %>
<% end %>
userは(iに1プラスした値)
なおindexは0から始まるため+1にしてますが、初期値の0から始めたい場合は{i}だけで大丈夫です。