mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Made pool and bout classes. Still need to fix bouts doubling on every
refresh of upcoming matches view
This commit is contained in:
@@ -8,10 +8,8 @@ class StaticPagesController < ApplicationController
|
||||
@tournament = Tournament.find(params[:tournament])
|
||||
end
|
||||
if @tournament
|
||||
@matches = Match.where(tournament_id: @tournament.id)
|
||||
@bouts = @tournament.bouts
|
||||
end
|
||||
@matches = @matches.where(finished: nil)
|
||||
|
||||
end
|
||||
def results
|
||||
if params[:tournament]
|
||||
|
||||
Reference in New Issue
Block a user