diff options
author | Marcel Molina <marcel@vernix.org> | 2006-02-08 05:13:21 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-02-08 05:13:21 +0000 |
commit | ba2619f53911d5b56b76ab45af882caa7334e3cf (patch) | |
tree | b4591f9890b31c3fe7e411e87ac9310a0ee22538 /actionpack/lib | |
parent | a447e82de4049e79dc1002257a1c6d6a660685d6 (diff) | |
download | rails-ba2619f53911d5b56b76ab45af882caa7334e3cf.tar.gz rails-ba2619f53911d5b56b76ab45af882caa7334e3cf.tar.bz2 rails-ba2619f53911d5b56b76ab45af882caa7334e3cf.zip |
Don't interpret the :value option on text_area as an html attribute. Set the text_area's value. Closes #3752.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-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 9473b59563..43770eec8d 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -277,7 +277,7 @@ module ActionView def to_text_area_tag(options = {}) options = DEFAULT_TEXT_AREA_OPTIONS.merge(options.stringify_keys) add_default_name_and_id(options) - content_tag("textarea", html_escape(value_before_type_cast), options) + content_tag("textarea", html_escape(options.delete('value') || value_before_type_cast), options) end def to_check_box_tag(options = {}, checked_value = "1", unchecked_value = "0") |