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:
@@ -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
|
||||
|
||||
@@ -7,6 +7,7 @@ class WrestlersController < ApplicationController
|
||||
# GET /wrestlers/1.json
|
||||
def show
|
||||
@school = @wrestler.school
|
||||
@tournament = @wrestler.tournament
|
||||
end
|
||||
|
||||
# GET /wrestlers/new
|
||||
|
||||
Reference in New Issue
Block a user