From 99322266b8e80118a3912083c9c53ec03ff73eb6 Mon Sep 17 00:00:00 2001 From: Sandeep Date: Tue, 21 Aug 2012 21:58:05 +0530 Subject: option_tags coerced to "" instead of nil --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb') diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index a9b91d1db3..ace457df2e 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -118,6 +118,7 @@ module ActionView # # => def select_tag(name, option_tags = nil, options = {}) + option_tags ||= "" html_name = (options[:multiple] == true && !name.to_s.ends_with?("[]")) ? "#{name}[]" : name if options.delete(:include_blank) -- cgit v1.2.3