mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-16 21:11:38 +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])
|
@tournament = Tournament.find(params[:tournament])
|
||||||
end
|
end
|
||||||
if @tournament
|
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
|
@mats = @tournament.mats
|
||||||
if @tournament.matches.empty?
|
if @tournament.matches.empty?
|
||||||
redirect_to "/static_pages/noMatches?tournament=#{@tournament.id}"
|
redirect_to "/static_pages/noMatches?tournament=#{@tournament.id}"
|
||||||
|
|||||||
Reference in New Issue
Block a user