mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-14 00:49:54 +00:00
removed controller actions and views not needed
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
<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 %>
|
||||
@@ -1,4 +0,0 @@
|
||||
json.array!(@mats) do |mat|
|
||||
json.extract! mat, :id, :name, :tournament_id
|
||||
json.url mat_url(mat, format: :json)
|
||||
end
|
||||
Reference in New Issue
Block a user