From 0c5ce83cdf08f91cdc3db8312ec417d05086dea5 Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 15 Jul 2016 09:47:49 -0700 Subject: [PATCH] Fixed empty option validation error --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 054cc52..774f346 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1153,7 +1153,7 @@ module ApplicationHelper # make sure that we have an empty option if the select is required if options[:required] && options[:options].first.present? && options[:options].first.last.present? - option_list = ('' + option_list).html_safe + option_list = ('' + option_list).html_safe end html += select_tag(name, option_list, input_options) else