STILL trying to get tournament rounds filled in correctly. Wholly freaking ActiveRecord.

This commit is contained in:
Dan Buch
2012-03-10 23:28:55 -05:00
parent 5cf5a8035d
commit 0b853163bf
6 changed files with 57 additions and 27 deletions

View File

@@ -41,7 +41,7 @@ class MashTournamentsController < ApplicationController
)
respond_to do |format|
if @mash_tournament.save && @mash_tournament.create_rounds
if @mash_tournament.save && @mash_tournament.create_rounds_for_contenders(8)
flash[:notice] = "Let's start mashing!"
format.html { redirect_to :controller => 'mashes', :action => 'new' }
else