diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-13 12:54:00 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-13 12:54:00 +0000 |
commit | b0c23e589f29319c4ff81a4d07257928d34f9510 (patch) | |
tree | 16e24983082dccdc6f1ee019133e9c8a8d9b44c7 /actionpack/lib/action_view | |
parent | c6435b77de91beb429c4b86aac2838839963fffb (diff) | |
download | rails-b0c23e589f29319c4ff81a4d07257928d34f9510.tar.gz rails-b0c23e589f29319c4ff81a4d07257928d34f9510.tar.bz2 rails-b0c23e589f29319c4ff81a4d07257928d34f9510.zip |
hidden_field can also be in fields_for
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 3a86edb348..b96d7a8f02 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -155,7 +155,7 @@ module ActionView # Works just like text_field, but returns an input tag of the "hidden" type instead. def hidden_field(object_name, method, options = {}) - InstanceTag.new(object_name, method, self).to_input_field_tag("hidden", options) + InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_input_field_tag("hidden", options) end # Works just like text_field, but returns an input tag of the "file" type instead, which won't have a default value. |