Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!-- statistics/index.html.erb -->
<table class="table table-striped">
<th>Week #</th>
<th>Avg Distance <small>(Km)</small></th>
<th>Avg Speed <small>(Km/H)</small></th>
<% @weekly_reports.each do |weekly_report| %>
<td><%= weekly_report.week_number %></td>
<td><%= weekly_report.date_from %></td>
<td><%= weekly_report.date_to %></td>
<td><%= weekly_report.count_entries %></td>
<td><%= weekly_report.avg_distance %></td>
<td><%= weekly_report.avg_speed %></td>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.