Skip to content

Instantly share code, notes, and snippets.

@manleyhimself
Created December 16, 2013 21:19
Show Gist options
  • Save manleyhimself/7994620 to your computer and use it in GitHub Desktop.
Save manleyhimself/7994620 to your computer and use it in GitHub Desktop.
<% @agency.actions.sort_by { |action| -action.payment }.each do |action| %>
<% cache [action, action.lobbyist_actions, action.lobbyists, action.agency_actions, action.agencies] do %>
<tr>
<td><%= action.purpose %></td>
<td valign="top"> <% action.lobbyists.each do |lobbyist| %>
<%= link_to lobbyist.name, lobbyist_path(lobbyist.slug) %> <br>
<%end%>
</td>
<td valign="top"> <%= link_to action.client.name, client_path(action.client.slug) %> </td>
<td valign="top">$<%= action.payment %></td>
<td><%= action.begin_date %></td>
<td><%= action.end_date %></td>
</tr>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment