Skip to content

Instantly share code, notes, and snippets.

@julesce
Created August 30, 2012 10:46
Show Gist options
  • Select an option

  • Save julesce/3526123 to your computer and use it in GitHub Desktop.

Select an option

Save julesce/3526123 to your computer and use it in GitHub Desktop.
<% @teams.each do |team| %>
<% team.admin_users.each do |user| %>
<tr>
<td><%= team.name %></td>
<td><%= user.name %></td>
<% (1..5).each do |counter| %>
<td><%= link_to(counter, admin_consultant_report_path(user.consultant_reports.select {|x| x.week.to_i == counter})) %></td>
<% end %>
</tr>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment