summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-28 00:17:33 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-28 00:17:33 -0400
commitee238dbbca6ee979aa886a4f4cebad41e6f79cce (patch)
tree501b28ab9789c9f48b481e8f5afd4a4fa39b8545
parent7a3fe845d568f6eab1e7a55239daed3685797c2e (diff)
30 minutes to add a single line
-rw-r--r--app/views/tournaments/_form.html.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb
index 2a871ea..a5eba7a 100644
--- a/app/views/tournaments/_form.html.erb
+++ b/app/views/tournaments/_form.html.erb
@@ -17,6 +17,7 @@
</fieldset>
<% else %>
<%= form_for(@tournament, url: tournaments_path, method: "post") do |f| %>
+ <%= f.hidden_field(:game_id) %>
<p>
<%= f.label :name %>
<%= f.text_field :name %>