Trying to get round generation and fill figured out TDD style
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user