Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -538,7 +538,7 @@ def html_options_for_form(url_for_options, options, *parameters_for_url) |
|
|
|
|
|
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 @@ def test_form_for_with_labelled_builder |
|
|
|
|
|
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 @@ def snowman(options = {}) |
|
|
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 |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
This comment has been minimized.
The snowman is back! :)☃
This comment has been minimized.
Nice call. :)
This comment has been minimized.
Awesome! http://railssnowman.info has been updated :)
This comment has been minimized.
Good morning news
This comment has been minimized.
Yay!☃ !
This comment has been minimized.
Please update information about parameter name (I`d leave _snowman :P)
And, btw, could it be an option? (So it could be disabled in test env since rack-test don`t like that)
This comment has been minimized.
rock on☃ !
This comment has been minimized.
@teamon: I've got a fork of rack-test that fixes the issue, waiting to get it pulled into the main repo.
This comment has been minimized.
Meh. Should've been☠ .
This comment has been minimized.
Nice!
This comment has been minimized.
RIP snowman. =[
This comment has been minimized.
Is there a possibility to bring snowman back?