1
0
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:
2014-12-15 13:12:39 -05:00
parent 73edb4a765
commit 1899218798
6 changed files with 54 additions and 43 deletions

View File

@@ -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]