From ef45245dda03b5bba3d66432ed814fdec1f51af3 Mon Sep 17 00:00:00 2001 From: DavisLWebb Date: Fri, 25 Apr 2014 12:47:37 -0400 Subject: I think I properly populated the teams into the @teams_pair array. Its in roundRobin.rb. Someone may want to check to make sure I did it right. --- lib/scheduling/roundrobin.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/scheduling/roundrobin.rb b/lib/scheduling/roundrobin.rb index a3a75c9..ffac9b6 100644 --- a/lib/scheduling/roundrobin.rb +++ b/lib/scheduling/roundrobin.rb @@ -1,4 +1,3 @@ - module Scheduling class RoundRobin include Rails.application.routes.url_helpers @@ -13,6 +12,9 @@ module Scheduling #round robin should look like this @team_pairs = Array.new(num_matches) + for i in 0..@match.teams.size + @team_pairs.push(@match.teams[i] + end #team_pairs needs populated with the team objects and im not sure how to do that end -- cgit v1.2.3-2-g168b