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

Put number next to school on team scores page and included team scores into all brackets

This commit is contained in:
2019-01-30 14:16:26 +00:00
parent dea5ee83f0
commit 972c5af093
3 changed files with 7 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ class TournamentsController < ApplicationController
@wrestler = Wrestler.find(params[:wrestler][:originalId])
respond_to do |format|
if SwapWrestlers.new.swap_wrestlers_bracket_lines(params[:wrestler][:originalId], params[:wrestler][:swapId])
format.html { redirect_to "/tournaments/#{@wrestler.tournament.id}/brackets/#{@wrestler.weight.id}", notice: 'Wrestler was successfully swaped.' }
format.html { redirect_to "/tournaments/#{@wrestler.tournament.id}/brackets/#{@wrestler.weight.id}", notice: 'Wrestlers successfully swapped.' }
format.json { render action: 'show', status: :created, location: @wrestler }
end
end
@@ -149,7 +149,8 @@ class TournamentsController < ApplicationController
def all_brackets
@schools = @tournament.schools
@schools = @schools.sort_by{|s| s.page_score_string}.reverse!
end
def bracket