diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-04-27 23:41:09 -0400 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-04-27 23:41:09 -0400 |
commit | d38f6fa6262803f3c6380a43f32de4889fcacaec (patch) | |
tree | 788fe045805adc09f7f2f18321c36e223ad9b413 /app | |
parent | 4c572a775a7c28b102b4462af94214148e6df1d2 (diff) |
Fixed an end with a _form and we fixed some other erros
Diffstat (limited to 'app')
-rw-r--r-- | app/views/tournaments/_form.html.erb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb index 90e0257..986bc70 100644 --- a/app/views/tournaments/_form.html.erb +++ b/app/views/tournaments/_form.html.erb @@ -13,7 +13,6 @@ </fieldset> <% else %> <%= form_for(@tournament, url: tournaments_path, method: "post") do |f| %> - <p> <%= f.label :name %> <%= f.text_field :name %> @@ -48,7 +47,7 @@ <p> <%= f.label :scoring_method %> - <%= f.select(:scoring_method, @tournament.scoring_methods.map{|method| [method.humanize, method]}) %> + <%= f.select(:scoring_method, @tournament.scoring_methods.map{|method| [method.humanize.titleize, method]}) %> </p> <p> @@ -84,7 +83,7 @@ <%= setting_fields.radio_button( setting.name, "true" ) %> True <%= setting_fields.radio_button( setting.name, "false" ) %> False <% when 5 %> - <%= setting_fields.select( setting.name, setting.type_opt.split(',') ) %> + <%= setting_fields.select( setting.name, setting.type_opt.split(',').collect {|opt| opt.humanize.titleize} ) %> <% end %> </p><% end %> <% end %> |