1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-09 23:44:52 +00:00

Went through views to make sure navigation is correct and views look ok

This commit is contained in:
2015-11-05 03:02:03 +00:00
parent 4fae1c2896
commit 7aad1ee429
15 changed files with 34 additions and 27 deletions

View File

@@ -55,8 +55,7 @@ class TournamentsController < ApplicationController
end
def brackets
@weights = @tournament.weights
@weights.sort_by{|w| w.max}
@weights = @tournament.weights.sort_by{|w| w.max}
end
def team_scores

View File

@@ -20,7 +20,7 @@ class WrestlersController < ApplicationController
@tournament = Tournament.find(@school.tournament_id)
end
if @tournament
@weights = Weight.where(tournament_id: @tournament.id)
@weights = Weight.where(tournament_id: @tournament.id).sort_by{|w| w.max}
end
end
@@ -31,7 +31,7 @@ class WrestlersController < ApplicationController
@school = @wrestler.school
@tournament = @wrestler.tournament
@weight = @wrestler.weight
@weights = @tournament.weights
@weights = @tournament.weights.sort_by{|w| w.max}
end
# POST /wrestlers