1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-06 14:36:59 +00:00

removed controller actions and views not needed

This commit is contained in:
2015-10-27 08:03:16 -04:00
parent e3640917c5
commit b539a769c2
16 changed files with 0 additions and 226 deletions

View File

@@ -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 %>

View File

@@ -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

View File

@@ -1,5 +0,0 @@
<h1>New match</h1>
<%= render 'form' %>
<%= link_to 'Back', matches_path %>

View File

@@ -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 %>

View File

@@ -1,4 +0,0 @@
json.array!(@mats) do |mat|
json.extract! mat, :id, :name, :tournament_id
json.url mat_url(mat, format: :json)
end

View File

@@ -1,25 +0,0 @@
<h1>Listing schools</h1>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Score</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<% @schools.each do |school| %>
<tr>
<td><%= school.name %></td>
<td><%= school.score %></td>
<td><%= link_to 'Show', school , :class=>"btn btn-default" %><%= link_to 'Edit', edit_school_path(school), :class=>"btn btn-default" %><%= link_to 'Destroy', school, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New School', new_school_path %>

View File

@@ -1,4 +0,0 @@
json.array!(@schools) do |school|
json.extract! school, :id, :name, :score
json.url school_url(school, format: :json)
end

View File

@@ -1,23 +0,0 @@
<h1>Listing weights</h1>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Max</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<% @weights.each do |weight| %>
<tr>
<td><%= weight.max %></td>
<td><%= link_to 'Show', weight, :class=>"btn btn-default" %><%= link_to 'Edit', edit_weight_path(weight), :class=>"btn btn-default" %><%= link_to 'Destroy', weight, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Weight', new_weight_path %>

View File

@@ -1,4 +0,0 @@
json.array!(@weights) do |weight|
json.extract! weight, :id, :max
json.url weight_url(weight, format: :json)
end

View File

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

View File

@@ -1,4 +0,0 @@
json.array!(@wrestlers) do |wrestler|
json.extract! wrestler, :id, :name, :school_id, :weight_id, :seed, :original_seed
json.url wrestler_url(wrestler, format: :json)
end