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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user