ActiveSupport::TimeWithZone を型変換せずにイテレートする - Qiita
from = Time.zone.parse('2016/07/25 12:30:00') to = Time.zone.parse('2016/07/31 12:30:00') そのまま (from..to).each.with_index(1) { |t, i|...