Skip to content

Commit c49144b

Browse files
committed
It's snowing!
1 parent fddcd21 commit c49144b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

actionpack/lib/action_view/helpers/form_tag_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def html_options_for_form(url_for_options, options, *parameters_for_url)
538538

539539
def extra_tags_for_form(html_options)
540540
snowman_tag = tag(:input, :type => "hidden",
541-
:name => "utf8", :value => "✓".html_safe)
541+
:name => "_utf8", :value => "☃".html_safe)
542542

543543
method = html_options.delete("method").to_s
544544

actionpack/test/template/form_helper_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ def test_form_for_with_labelled_builder
15131513

15141514
def snowman(method = nil)
15151515
txt = %{<div style="margin:0;padding:0;display:inline">}
1516-
txt << %{<input name="utf8" type="hidden" value="&#x2713;" />}
1516+
txt << %{<input name="_utf8" type="hidden" value="&#9731;" />}
15171517
txt << %{<input name="_method" type="hidden" value="#{method}" />} if method
15181518
txt << %{</div>}
15191519
end

actionpack/test/template/form_tag_helper_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def snowman(options = {})
1212
method = options[:method]
1313

1414
txt = %{<div style="margin:0;padding:0;display:inline">}
15-
txt << %{<input name="utf8" type="hidden" value="&#x2713;" />}
15+
txt << %{<input name="_utf8" type="hidden" value="&#9731;" />}
1616
txt << %{<input name="_method" type="hidden" value="#{method}" />} if method
1717
txt << %{</div>}
1818
end

0 commit comments

Comments
 (0)