1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-28 01:31:29 +00:00

Added basic scaffolds for schools wrestlers and weights

This commit is contained in:
Jacob Cody Wimer
2013-12-31 11:23:43 -05:00
parent 5b6a127549
commit 24d9deee8b
57 changed files with 943 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
<h1>Listing wrestlers</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>School</th>
<th>Weight</th>
<th>Seed</th>
<th>Original seed</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<% @wrestlers.each do |wrestler| %>
<tr>
<td><%= wrestler.name %></td>
<td><%= School.find(wrestler.school_id).name %></td>
<td><%= Weight.find(wrestler.weight_id).max %></td>
<td><%= wrestler.seed %></td>
<td><%= wrestler.original_seed %></td>
<td><%= link_to 'Show', wrestler %></td>
<td><%= link_to 'Edit', edit_wrestler_path(wrestler) %></td>
<td><%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Wrestler', new_wrestler_path %>