summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-07 01:25:12 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-07 01:25:12 -0500
commitf69fcc28596700c1a875068b7cb616d6eb40e6df (patch)
treec11b97401a620f2dd7df5ae4b9645111065b0a8a /app/controllers/matches_controller.rb
parentfd213819fa004209fc466b19ee65d83b1f918068 (diff)
It is 1:30 AM
Diffstat (limited to 'app/controllers/matches_controller.rb')
-rw-r--r--app/controllers/matches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
index 986bb44..1f0d964 100644
--- a/app/controllers/matches_controller.rb
+++ b/app/controllers/matches_controller.rb
@@ -42,7 +42,7 @@ class MatchesController < ApplicationController
def update
respond_to do |format|
if @match.update(match_params)
- format.html { redirect_to @match, notice: 'Match was successfully updated.' }
+ format.html { redirect_to [@tournament, @match], notice: 'Match was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: 'edit' }