<h1>Listing donations</h1>
<hr>
<table>
  <tr>
    <th>Date given &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
    <th>Amount &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
    <th>Alum Id</th>
  </tr>

<% @donations.each do |donation| %>
  <tr>
    <td><%=h donation.date_given %></td>
    <td><%=h donation.amount %></td>
    <td><%=h donation.alumnu_id %></td>
    <td><%= link_to 'Show', donation %></td>
    <td><%= link_to 'Edit', edit_donation_path(donation) %></td>
    <td><%= link_to 'Destroy', donation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New donation', new_donation_path %>