From 5ca9bd493d0348d56a3a8ce56923a72230515fe0 Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Fri, 7 Mar 2014 00:41:40 -0500 Subject: Hey guys, I made it work. Just pick max_players_per_match to be 1. --- app/controllers/tournaments_controller.rb | 1 + app/models/tournament.rb | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 3583ec3..0807953 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -30,6 +30,7 @@ class TournamentsController < ApplicationController if params['close_action'] == 'close' @tournament.status = 1 @tournament.save + @tournament.setup(@tournament) redirect_to "/tournaments" end end diff --git a/app/models/tournament.rb b/app/models/tournament.rb index fe781e1..ead9205 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -19,17 +19,17 @@ class Tournament < ActiveRecord::Base players<