1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-14 17:06:46 +00:00

Redirect back to mat when match is saved

This commit is contained in:
2015-12-03 13:10:03 +00:00
parent ce2e80a2b4
commit b334c1fad3

View File

@@ -25,7 +25,7 @@ class MatchesController < ApplicationController
def update def update
respond_to do |format| respond_to do |format|
if @match.update(match_params) 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 } format.json { head :no_content }
else else
format.html { render action: 'edit' } format.html { render action: 'edit' }