Permalink
Browse files

It's snowing!

  • Loading branch information...
jeremy committed Aug 12, 2010
1 parent fddcd21 commit c49144b2f7b2cb9b59ea3a9cddd69de47f268ae6
@@ -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="&#x2713;" />}
txt << %{<input name="_utf8" type="hidden" value="&#9731;" />}
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="&#x2713;" />}
txt << %{<input name="_utf8" type="hidden" value="&#9731;" />}
txt << %{<input name="_method" type="hidden" value="#{method}" />} if method
txt << %{</div>}
end

12 comments on commit c49144b

@iain

This comment has been minimized.

Show comment
Hide comment
@iain

iain Aug 12, 2010

Contributor

The snowman is back! :) ☃

Contributor

iain replied Aug 12, 2010

The snowman is back! :) ☃

@norman

This comment has been minimized.

Show comment
Hide comment
@norman

norman Aug 12, 2010

Contributor

Nice call. :)

Contributor

norman replied Aug 12, 2010

Nice call. :)

@Aupajo

This comment has been minimized.

Show comment
Hide comment
@Aupajo

Aupajo Aug 13, 2010

Awesome! http://railssnowman.info has been updated :)

Aupajo replied Aug 13, 2010

Awesome! http://railssnowman.info has been updated :)

@seban

This comment has been minimized.

Show comment
Hide comment
@seban

seban Aug 13, 2010

Good morning news

seban replied Aug 13, 2010

Good morning news

@jimneath

This comment has been minimized.

Show comment
Hide comment
@jimneath

jimneath replied Aug 13, 2010

Yay! ☃!

@teamon

This comment has been minimized.

Show comment
Hide comment
@teamon

teamon Aug 13, 2010

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)

teamon replied Aug 13, 2010

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)

@plukevdh

This comment has been minimized.

Show comment
Hide comment
@plukevdh

plukevdh Aug 13, 2010

rock on ☃!

plukevdh replied Aug 13, 2010

rock on ☃!

@alan

This comment has been minimized.

Show comment
Hide comment
@alan

alan Aug 13, 2010

Contributor

@teamon: I've got a fork of rack-test that fixes the issue, waiting to get it pulled into the main repo.

Contributor

alan replied Aug 13, 2010

@teamon: I've got a fork of rack-test that fixes the issue, waiting to get it pulled into the main repo.

@threedaymonk

This comment has been minimized.

Show comment
Hide comment
@threedaymonk

threedaymonk Aug 13, 2010

Contributor

Meh. Should've been ☠.

Contributor

threedaymonk replied Aug 13, 2010

Meh. Should've been ☠.

@sandstrom

This comment has been minimized.

Show comment
Hide comment
@sandstrom

sandstrom replied Aug 24, 2010

Nice!

@nathankleyn

This comment has been minimized.

Show comment
Hide comment
@nathankleyn

nathankleyn Aug 31, 2010

RIP snowman. =[

nathankleyn replied Aug 31, 2010

RIP snowman. =[

@hauleth

This comment has been minimized.

Show comment
Hide comment
@hauleth

hauleth Dec 9, 2012

Is there a possibility to bring snowman back?

hauleth replied Dec 9, 2012

Is there a possibility to bring snowman back?

Please sign in to comment.