mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
order up matches by bout_number
This commit is contained in:
@@ -9,7 +9,7 @@ class StaticPagesController < ApplicationController
|
||||
@tournament = Tournament.find(params[:tournament])
|
||||
end
|
||||
if @tournament
|
||||
@matches = @tournament.matches.where(mat_id: nil).limit(10)
|
||||
@matches = @tournament.matches.where(mat_id: nil).order('bout_number ASC').limit(10)
|
||||
@mats = @tournament.mats
|
||||
if @tournament.matches.empty?
|
||||
redirect_to "/static_pages/noMatches?tournament=#{@tournament.id}"
|
||||
|
||||
Reference in New Issue
Block a user