diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 15:06:19 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 15:06:19 -0500 |
commit | 1178dea355bf88213f5b36fae8914af6385b341a (patch) | |
tree | d878f219336ba22350011eebf71434e35957953a /app/controllers | |
parent | 5bd262333beb533cc08f21f7398e3ed1e890a23d (diff) |
tournaments: fix game selection
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 1d17205..915c072 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -15,8 +15,8 @@ class TournamentsController < ApplicationController # GET /tournaments/new def new - @game_names = Game.all.collect - @game = params[:game] + @games = Game.all + @game = Game.find_by_id(params[:game]) @tournament = Tournament.new end |