1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-07 14:57:48 +00:00

The rest of 1-21 changes. Mostly visual flow between tournament school and wrestlers

This commit is contained in:
Jacob Cody Wimer
2014-01-21 21:43:48 -05:00
parent 1112699025
commit 73d22a126a
10 changed files with 62 additions and 24 deletions

View File

@@ -16,6 +16,9 @@ class SchoolsController < ApplicationController
# GET /schools/new
def new
@school = School.new
if params[:tournament]
@tournament = params[:tournament]
end
end
# GET /schools/1/edit
@@ -70,6 +73,6 @@ class SchoolsController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def school_params
params.require(:school).permit(:name, :score)
params.require(:school).permit(:name, :score, :tournament_id)
end
end