From b334c1fad382f15d57c484dace6f28a6bb0b2369 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Thu, 3 Dec 2015 13:10:03 +0000 Subject: [PATCH] Redirect back to mat when match is saved --- app/controllers/matches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb index c73897f..a4123b7 100644 --- a/app/controllers/matches_controller.rb +++ b/app/controllers/matches_controller.rb @@ -25,7 +25,7 @@ class MatchesController < ApplicationController def update respond_to do |format| if @match.update(match_params) - format.html { redirect_to tournament_path(@match.tournament_id), notice: 'Match was successfully updated.' } + format.html { redirect_to mat_path(@match.mat_id), notice: 'Match was successfully updated.' } format.json { head :no_content } else format.html { render action: 'edit' }