summaryrefslogtreecommitdiff
path: root/app/views/tournaments/new.html.erb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-23 19:32:28 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-23 19:32:28 -0400
commit734729119cbc31e847fd46609b598573f365bdc4 (patch)
tree020227b1357fc406fe6373e2aa97c042c60f8dac /app/views/tournaments/new.html.erb
parentd0a0f806a4bb8072c532ea7b35ad8b7643ac8645 (diff)
tournaments: unify params[:game] and params[:tournament][:game_id]
Diffstat (limited to 'app/views/tournaments/new.html.erb')
-rw-r--r--app/views/tournaments/new.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb
index 8c74068..66149fe 100644
--- a/app/views/tournaments/new.html.erb
+++ b/app/views/tournaments/new.html.erb
@@ -1,7 +1,7 @@
<h1>New Tournament</h1>
<%= form_tag(new_tournament_path, method: "get") do %>
- <%= select_tag('game',
+ <%= select_tag('tournament[game_id]',
options_from_collection_for_select(@games, 'id', 'name', @tournament.game.nil? || @tournament.game.id),
:prompt => "Select a Game Type") %>
<%= submit_tag("Select", :class => "btn btn-success btn-xs") %>