diff options
author | Sam Stephenson <sam@37signals.com> | 2006-02-08 20:46:15 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2006-02-08 20:46:15 +0000 |
commit | 803b9a41af46210da842afdba032c34109514942 (patch) | |
tree | 0ed7d2d1c893fb6c74df9198f8fb3d28e4e3bbd5 /actionpack/lib | |
parent | 73ed47ddec458a512178de584e896ebb276c0125 (diff) | |
download | rails-803b9a41af46210da842afdba032c34109514942.tar.gz rails-803b9a41af46210da842afdba032c34109514942.tar.bz2 rails-803b9a41af46210da842afdba032c34109514942.zip |
Add :html option for specifying form tag options in form_for
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3552 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 43770eec8d..872453b753 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -119,12 +119,12 @@ module ActionView url_options = options.delete(:url) || {} form_tag_selector = options.delete(:form_tag_selector) || :form_tag - form_options = {} + form_options = options.delete(:html) || {} [:method, :multipart].each { |key| form_options[key] = options.delete(key) if options.key? key } fields_for(object_name, object, options.merge(:proc => proc)) do |builder| if form_tag_selector == :form_remote_tag - concat send(form_tag_selector, form_options.merge(:url => url_options)), proc.binding + concat send(form_tag_selector, form_options.merge(:url => url_options, :html => form_options)), proc.binding else concat send(form_tag_selector, url_options, form_options), proc.binding end |