1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Files
wrestlingdev.com/app/views/weights/index.html.erb

24 lines
612 B
Plaintext

<h1>Listing weights</h1>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Max</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<% @weights.each do |weight| %>
<tr>
<td><%= weight.max %></td>
<td><%= link_to 'Show', weight, :class=>"btn btn-default" %><%= link_to 'Edit', edit_weight_path(weight), :class=>"btn btn-default" %><%= link_to 'Destroy', weight, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Weight', new_weight_path %>