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

Fixing controllers and views with validations

This commit is contained in:
2015-12-30 19:42:58 +00:00
parent 198c6d5e82
commit 9fb1615120
8 changed files with 29 additions and 35 deletions

View File

@@ -18,14 +18,12 @@ class WeightsController < ApplicationController
def new
@weight = Weight.new
if params[:tournament]
@tournament_field = params[:tournament]
@tournament = Tournament.find(params[:tournament])
end
end
# GET /weights/1/edit
def edit
@tournament_field = @weight.tournament_id
@tournament = @weight.tournament
@mats = @tournament.mats
end