mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
It's snowing!
This commit is contained in:
@@ -538,7 +538,7 @@ module ActionView
|
||||
|
||||
def extra_tags_for_form(html_options)
|
||||
snowman_tag = tag(:input, :type => "hidden",
|
||||
:name => "utf8", :value => "✓".html_safe)
|
||||
:name => "_utf8", :value => "☃".html_safe)
|
||||
|
||||
method = html_options.delete("method").to_s
|
||||
|
||||
|
||||
@@ -1513,7 +1513,7 @@ class FormHelperTest < ActionView::TestCase
|
||||
|
||||
def snowman(method = nil)
|
||||
txt = %{<div style="margin:0;padding:0;display:inline">}
|
||||
txt << %{<input name="utf8" type="hidden" value="✓" />}
|
||||
txt << %{<input name="_utf8" type="hidden" value="☃" />}
|
||||
txt << %{<input name="_method" type="hidden" value="#{method}" />} if method
|
||||
txt << %{</div>}
|
||||
end
|
||||
|
||||
@@ -12,7 +12,7 @@ class FormTagHelperTest < ActionView::TestCase
|
||||
method = options[:method]
|
||||
|
||||
txt = %{<div style="margin:0;padding:0;display:inline">}
|
||||
txt << %{<input name="utf8" type="hidden" value="✓" />}
|
||||
txt << %{<input name="_utf8" type="hidden" value="☃" />}
|
||||
txt << %{<input name="_method" type="hidden" value="#{method}" />} if method
|
||||
txt << %{</div>}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user