chrisff
2009-Feb-25 14:20 UTC
[PATCH] minor config feature for action_view: html_options for div tag that wraps authenticity_token
The DIV tag generated inside form_for and form_tag by default has the
style ''margin:0;padding:0'' and the input fields inside it
(_method and
authenticity_token) are hidden, so it usually has no effect on the
HTML page, but sometimes you need to have a CSS class on it to avoid
some layout/float issues.
This patch adds a configuration option that can be used like this:
config.action_view.html_options_for_extra_tag_in_form
{:class=>''hideMe''}
or
config.action_view.html_options_for_extra_tag_in_form
{:class=>''hideMe'',
:style=>''display:none''}
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2044-patch-to-add-html-options-to-the-div-that-wraps-the-authenticity_token-input-field
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---