summaryrefslogtreecommitdiff
path: root/app/views/tournaments/new.html.erb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 18:55:38 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 18:55:38 -0500
commit1788dde36e53c4ef16adc5db2d19f44797325496 (patch)
tree4d331750a288fcdc052df2ae7dff19c68cd24151 /app/views/tournaments/new.html.erb
parent39f373778e73c54952dddd11e87f4ba354471622 (diff)
implement tournament joining
Diffstat (limited to 'app/views/tournaments/new.html.erb')
-rw-r--r--app/views/tournaments/new.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb
index 6c3fefc..e007e31 100644
--- a/app/views/tournaments/new.html.erb
+++ b/app/views/tournaments/new.html.erb
@@ -2,13 +2,13 @@
<%= form_tag(new_tournament_path, method: "get") do %>
<%= select_tag('game',
- options_from_collection_for_select(@games, 'id', 'name', @game.nil? || @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-warning btn-lg") %>
<% end %>
<div id='ajax-form'>
- <% unless @game.nil? %>
+ <% unless @tournament.game.nil? %>
<%= render 'selected' %>
<% end %>
</div>