Permalink
Browse files

Make form_for work with additional options

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 0306127 commit c6435b77de91beb429c4b86aac2838839963fffb @dhh dhh committed Nov 13, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
@@ -114,7 +114,7 @@ def form_for(options, *parameters_for_url, &proc)
additional_options = options.reject { |k, v| ![ :method, :multipart ].include?(k) }
concat(form_tag(url_for_options, additional_options, *parameters_for_url), proc.binding)
- fields_for({ options.keys.first => options.values.first }, &proc)
+ fields_for({ object_name => object }, &proc)
concat(end_form_tag, proc.binding)
end

0 comments on commit c6435b7

Please sign in to comment.