1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Extra fixed in wrestler controller and in school view

This commit is contained in:
vagrant
2015-02-06 03:30:27 +00:00
parent f4059009ba
commit 2b1f0f4ddf
2 changed files with 5 additions and 1 deletions

View File

@@ -102,6 +102,6 @@ class WrestlersController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
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

View File

@@ -38,6 +38,7 @@
<th>Seed</th>
<th>Record</th>
<th>Seed Criteria</th>
<th>Extra?</th>
<th>Actions</th>
</tr>
</thead>
@@ -51,6 +52,9 @@
<td><%= wrestler.original_seed %></td>
<td><%= wrestler.season_win %>-<%= wrestler.season_loss %></td>
<td><%= wrestler.criteria %></td>
<td><% if wrestler.extra? == true %>
Yes
<% end %></td>
<td>
<% if user_signed_in? %>
<%= link_to 'Show', wrestler , :class=>"btn" %>