From 436ce0efd80959a6b9a265370024258605b978c7 Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 15 Jul 2016 08:48:55 -0700 Subject: [PATCH] Fixed empty select option 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 6e96be5..08ee130 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