mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-08 23:34:51 +00:00
Added basic scaffolds for schools wrestlers and weights
This commit is contained in:
27
app/views/weights/index.html.erb
Normal file
27
app/views/weights/index.html.erb
Normal file
@@ -0,0 +1,27 @@
|
||||
<h1>Listing weights</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Max</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @weights.each do |weight| %>
|
||||
<tr>
|
||||
<td><%= weight.max %></td>
|
||||
<td><%= link_to 'Show', weight %></td>
|
||||
<td><%= link_to 'Edit', edit_weight_path(weight) %></td>
|
||||
<td><%= link_to 'Destroy', weight, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Weight', new_weight_path %>
|
||||
Reference in New Issue
Block a user