1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Updated views for wrestlers show page

This commit is contained in:
2015-12-04 19:50:32 +00:00
parent 1591d8d7de
commit 68fe5e4f90
6 changed files with 13 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
class TournamentsController < ApplicationController
before_action :set_tournament, only: [:weigh_in,:weigh_in_weight,:create_custom_weights,:show,:edit,:update,:destroy,:up_matches,:no_matches,:team_scores,:brackets,:generate_matches,:bracket,:results,:all_brackets]
before_action :set_tournament, only: [:weigh_in,:weigh_in_weight,:create_custom_weights,:show,:edit,:update,:destroy,:up_matches,:no_matches,:team_scores,:brackets,:generate_matches,:bracket,:all_brackets]
before_filter :check_access, only: [:weigh_in,:weigh_in_weight,:create_custom_weights,:update,:edit,:destroy,:generate_matches]
before_filter :check_for_matches, only: [:up_matches,:bracket]
@@ -36,10 +36,6 @@ class TournamentsController < ApplicationController
end
def results
@matches = @tournament.matches
end
def bracket
if params[:weight]
@weight = Weight.where(:id => params[:weight]).includes(:matches,:wrestlers).first

View File

@@ -7,6 +7,7 @@ class WrestlersController < ApplicationController
# GET /wrestlers/1.json
def show
@school = @wrestler.school
@tournament = @wrestler.tournament
end
# GET /wrestlers/new