mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-08 23:11:00 +00:00
A ton of stuff was done to finalize the app for use
This commit is contained in:
29
app/views/mats/index.html.erb
Normal file
29
app/views/mats/index.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<h1>Listing mats</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Tournament</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @mats.each do |mat| %>
|
||||
<tr>
|
||||
<td><%= mat.name %></td>
|
||||
<td><%= mat.tournament_id %></td>
|
||||
<td><%= link_to 'Show', mat %></td>
|
||||
<td><%= link_to 'Edit', edit_mat_path(mat) %></td>
|
||||
<td><%= link_to 'Destroy', mat, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Mat', new_mat_path %>
|
||||
Reference in New Issue
Block a user