aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorElliot Winkler <elliot.winkler@gmail.com>2009-06-28 02:14:44 -0500
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-07-01 17:12:08 -0700
commit8bb510f6c1e235f5fb1cf9e79af759a429a497b0 (patch)
treea3ed0585710ab8fff57e957170452308b3f5f082 /actionpack/lib
parentee7d4c47e7abf1e5ec8f4d4a1e937cdee5bb8d9c (diff)
downloadrails-8bb510f6c1e235f5fb1cf9e79af759a429a497b0.tar.gz
rails-8bb510f6c1e235f5fb1cf9e79af759a429a497b0.tar.bz2
rails-8bb510f6c1e235f5fb1cf9e79af759a429a497b0.zip
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>
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb
index ca6ba501e2..e126b35e90 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -451,10 +451,10 @@ module ActionView
''
when /^post$/i, "", nil
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
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