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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user