mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-02 21:24:25 +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
|
||||
|
||||
Reference in New Issue
Block a user