diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-23 12:54:11 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-23 12:54:11 -0400 |
commit | b6d146624b6d3e78c24d3bade5eb558f0a9f626b (patch) | |
tree | d77bb48d8d09b5e0880b2ad33f957f88f4b43b81 /app/views/tournaments | |
parent | c846cd71411ec3373a5229cacafe0df6b3673543 (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.erb | 6 |
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 %> |