mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
It's snowing!
This commit is contained in:
parent
fddcd21bd1
commit
c49144b2f7
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue