1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-16 13:03:37 +00:00

Matche edit and mat show redirect properly

This commit is contained in:
2019-01-23 16:04:51 +00:00
parent 100317075b
commit 19f10ec80b
5 changed files with 8 additions and 16 deletions

View File

@@ -88,7 +88,8 @@
<br>
<%= f.hidden_field :finished, :value => 1 %>
<%= f.hidden_field :round, :value => @match.round %>
<%= f.hidden_field :round, :value => @match.round %>
<%= f.hidden_field :redirect_path, :value => @redirect_path %>
<br>

View File

@@ -1,6 +1,3 @@
<%= link_to "Back to #{@match.tournament.name} matches", "/tournaments/#{@match.tournament.id}/matches", :class=>"btn btn-default" %>
<br>
<br>
<h1><%= @w1.name %> VS. <%= @w2.name %></h1>
<% @redirect_path = "/tournaments/#{@tournament.id}/matches" %>
<%= render 'form' %>