box-o-sand/rails/map-mash/app/views/mashes/index.html.erb
2012-03-04 11:51:35 -05:00

26 lines
566 B
Plaintext

<h1>Listing mashes</h1>
<table>
<tr>
<th>Requester</th>
<th>Map a</th>
<th>Map b</th>
<th>Winner</th>
</tr>
<% @mashes.each do |mash| %>
<tr>
<td><%=h mash.requester %></td>
<td><%=h mash.map_a %></td>
<td><%=h mash.map_b %></td>
<td><%=h mash.winner %></td>
<td><%= link_to 'Show', mash %></td>
<td><%= link_to 'Edit', edit_mash_path(mash) %></td>
<td><%= link_to 'Destroy', mash, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New mash', new_mash_path %>