Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hidden_field can also be in fields_for
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Nov 13, 2005
1 parent c6435b7 commit b0c23e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/form_helper.rb
Expand Up @@ -155,7 +155,7 @@ def password_field(object_name, method, options = {})

# 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.
Expand Down

0 comments on commit b0c23e5

Please sign in to comment.