1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 13:43:48 +00:00

Got stuff working with matches being saved individually.

This commit is contained in:
2015-04-26 15:49:13 -04:00
parent 391e523b2e
commit dd44efa869
12 changed files with 97 additions and 128 deletions

View File

@@ -64,14 +64,13 @@ class Poolbracket
end
def createMatchup(matches,weight,round,w1_name,w2_name,bracket_position,bracket_position_number)
@match = Matchup.new
@match.w1_name = w1_name
@match.w2_name = w2_name
@match = Match.new
@match.loser1_name = w1_name
@match.loser2_name = w2_name
@match.weight_id = weight.id
@match.round = round
@match.bracket_position = bracket_position
@match.bracket_position_number = bracket_position_number
@match.weight_max = weight.max
matches << @match
return matches
end