- @reports.to_enum.with_index(1).each do |r, i|
- r.alerts.reverse.each do |a|
- if a.code == 14
%tr
%td.num_col Trip #{i}
%td.start_col #{r.time}
%td.end_col
%td.distance_col #{0}
i should equal 1 during first iteration. However, it is equal to 20
during every iteration. Not sure what's going on.
thanks for response
--
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.