summaryrefslogtreecommitdiff
path: root/app/views/tournaments
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-23 12:54:11 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-23 12:54:11 -0400
commitb6d146624b6d3e78c24d3bade5eb558f0a9f626b (patch)
treed77bb48d8d09b5e0880b2ad33f957f88f4b43b81 /app/views/tournaments
parentc846cd71411ec3373a5229cacafe0df6b3673543 (diff)
Removed whitespace, added support for sampling_methods in view, modified seeds
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 %>