Patch FormTagHelper so that when a form tag is created, the div which holds the form authenticity token is set to display:inline [#2846 state:resolved]

Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
This commit is contained in:
Elliot Winkler 2009-06-28 02:14:44 -05:00 committed by Yehuda Katz + Carl Lerche
parent ee7d4c47e7
commit 8bb510f6c1
1 changed files with 2 additions and 2 deletions

View File

@ -451,10 +451,10 @@ module ActionView
'' ''
when /^post$/i, "", nil when /^post$/i, "", nil
html_options["method"] = "post" html_options["method"] = "post"
protect_against_forgery? ? content_tag(:div, token_tag, :style => 'margin:0;padding:0') : '' protect_against_forgery? ? content_tag(:div, token_tag, :style => 'margin:0;padding:0;display:inline') : ''
else else
html_options["method"] = "post" html_options["method"] = "post"
content_tag(:div, tag(:input, :type => "hidden", :name => "_method", :value => method) + token_tag, :style => 'margin:0;padding:0') content_tag(:div, tag(:input, :type => "hidden", :name => "_method", :value => method) + token_tag, :style => 'margin:0;padding:0;display:inline')
end end
end end