From b6d146624b6d3e78c24d3bade5eb558f0a9f626b Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Wed, 23 Apr 2014 12:54:11 -0400 Subject: Removed whitespace, added support for sampling_methods in view, modified seeds --- app/views/tournaments/_selected.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/views/tournaments/_selected.html.erb') 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 %>

<%= f.label name %>
- <% 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 %> -- cgit v1.2.3-2-g168b