mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-09 23:44:52 +00:00
Extra fixed in wrestler controller and in school view
This commit is contained in:
@@ -102,6 +102,6 @@ class WrestlersController < ApplicationController
|
|||||||
|
|
||||||
# Never trust parameters from the scary internet, only allow the white list through.
|
# Never trust parameters from the scary internet, only allow the white list through.
|
||||||
def wrestler_params
|
def wrestler_params
|
||||||
params.require(:wrestler).permit(:name, :school_id, :weight_id, :seed, :original_seed, :season_win, :season_loss,:criteria)
|
params.require(:wrestler).permit(:name, :school_id, :weight_id, :seed, :original_seed, :season_win, :season_loss,:criteria,:extra)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
<th>Seed</th>
|
<th>Seed</th>
|
||||||
<th>Record</th>
|
<th>Record</th>
|
||||||
<th>Seed Criteria</th>
|
<th>Seed Criteria</th>
|
||||||
|
<th>Extra?</th>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -51,6 +52,9 @@
|
|||||||
<td><%= wrestler.original_seed %></td>
|
<td><%= wrestler.original_seed %></td>
|
||||||
<td><%= wrestler.season_win %>-<%= wrestler.season_loss %></td>
|
<td><%= wrestler.season_win %>-<%= wrestler.season_loss %></td>
|
||||||
<td><%= wrestler.criteria %></td>
|
<td><%= wrestler.criteria %></td>
|
||||||
|
<td><% if wrestler.extra? == true %>
|
||||||
|
Yes
|
||||||
|
<% end %></td>
|
||||||
<td>
|
<td>
|
||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
<%= link_to 'Show', wrestler , :class=>"btn" %>
|
<%= link_to 'Show', wrestler , :class=>"btn" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user