mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-14 17:06:46 +00:00
removed controller actions and views not needed
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
<h1>Listing matches</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>R</th>
|
||||
<th>G</th>
|
||||
<th>G stat</th>
|
||||
<th>R stat</th>
|
||||
<th>Winner</th>
|
||||
<th>Win type</th>
|
||||
<th>Score</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @matches.each do |match| %>
|
||||
<tr>
|
||||
<td><%= match.w1_name %></td>
|
||||
<td><%= match.w2_name %></td>
|
||||
<td><%= match.winner_id %></td>
|
||||
<td><%= match.win_type %></td>
|
||||
<td><%= match.score %></td>
|
||||
<td><%= link_to 'Show', match %></td>
|
||||
<td><%= link_to 'Edit', edit_match_path(match) %></td>
|
||||
<td><%= link_to 'Destroy', match, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Match', new_match_path %>
|
||||
@@ -1,4 +0,0 @@
|
||||
json.array!(@matches) do |match|
|
||||
json.extract! match, :id, :r_id, :g_id, :g_stat, :r_stat, :winner_id, :win_type, :score
|
||||
json.url match_url(match, format: :json)
|
||||
end
|
||||
@@ -1,5 +0,0 @@
|
||||
<h1>New match</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', matches_path %>
|
||||
Reference in New Issue
Block a user