Trying to get round generation and fill figured out TDD style

This commit is contained in:
Dan Buch
2012-03-10 21:13:03 -05:00
parent f177ecde2a
commit e1f1aa6038
6 changed files with 55 additions and 26 deletions

View File

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