1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 22:03:49 +00:00

Set up blank bracket matches for fourPools

This commit is contained in:
2015-03-23 18:17:06 +00:00
parent 20f9b7f016
commit 27883597ca
5 changed files with 252 additions and 188 deletions

View File

@@ -37,7 +37,7 @@ class StaticPagesController < ApplicationController
if params[:weight]
@weight = Weight.find(params[:weight])
@tournament = Tournament.find(@weight.tournament_id)
@matches = @tournament.upcomingMatches
@matches = @tournament.upcomingMatches.select{|m| m.weight_id == @weight.id}
@wrestlers = Wrestler.where(weight_id: @weight.id)
@poolOneWrestlers = @wrestlers.select{|w| w.generatePoolNumber == 1}
@poolTwoWrestlers = @wrestlers.select{|w| w.generatePoolNumber == 2}