Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No need of html_safe here

tag helper always return a html safe string and concat two html safe
strings always return a html safe string
  • Loading branch information...
commit 63f48b113a31c8ef523293ff6d9bc8c5c2261aef 1 parent 4b81007
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_view/helpers/form_helper.rb
View
2  actionpack/lib/action_view/helpers/form_helper.rb
@@ -1093,7 +1093,7 @@ def to_check_box_tag(options = {}, checked_value = "1", unchecked_value = "0")
end
hidden = tag("input", "name" => options["name"], "type" => "hidden", "value" => options['disabled'] && checked ? checked_value : unchecked_value)
checkbox = tag("input", options)
- (hidden + checkbox).html_safe
+ hidden + checkbox
end
def to_boolean_select_tag(options = {})
Please sign in to comment.
Something went wrong with that request. Please try again.