summaryrefslogtreecommitdiff
path: root/app/views/tournaments
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/tournaments')
-rw-r--r--app/views/tournaments/_selected.html.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/tournaments/_selected.html.erb b/app/views/tournaments/_selected.html.erb
index a4efa4f..7f0cf81 100644
--- a/app/views/tournaments/_selected.html.erb
+++ b/app/views/tournaments/_selected.html.erb
@@ -9,8 +9,12 @@
<% end %>
<p>
<%= f.label name %><br>
- <% if !@game.attributes[name].nil? %>
+ <% unless @game.attributes[name].nil? %>
+ <% if name == "sampling_method" %>
+ <%= f.select( name, @game.sampling_method.split(',') ) %>
+ <% else %>
<%= f.text_field(name, :value => @game.attributes[name] ) %>
+ <% end %>
<% else %>
<%= f.text_field name %>
<% end %>