diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb index 9ab5a69..89f747f 100644 --- a/app/controllers/matches_controller.rb +++ b/app/controllers/matches_controller.rb @@ -5,6 +5,7 @@ class MatchesController < ApplicationController # GET /matches/1 # GET /matches/1.json def show + @tournament = @match.tournament end diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index 9905992..939a880 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -1,38 +1,28 @@ +
| + | <%= @match.wrestler1.name %> (<%= @match.wrestler1.school.name %>) | +<%= @match.wrestler2.name %> (<%= @match.wrestler2.school.name %>) | +
|---|---|---|
| Stats | +<%= @match.w1_stat %> | +<%= @match.w2_stat %> | +Winner | +<%= @match.winner_name %> | ++ + |
| Score | +<%= @match.score %> | ++ |