diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-24 08:53:57 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-24 08:53:57 -0700 |
commit | 82a76dfd188223f2856fd92568f51e088be44f31 (patch) | |
tree | 4e7c1278b45a7a128d1e3e0b0b945a7119ab9930 /actionview/CHANGELOG.md | |
parent | 3a4d0b1e2975122defe86de31fc35ab2dcd9b984 (diff) | |
parent | 1424873948a98ab30ac4b5eed35d3de59a54b92a (diff) | |
download | rails-82a76dfd188223f2856fd92568f51e088be44f31.tar.gz rails-82a76dfd188223f2856fd92568f51e088be44f31.tar.bz2 rails-82a76dfd188223f2856fd92568f51e088be44f31.zip |
Merge pull request #11570 from joelcogen/harmonize_text_field_and_area
text_area should handle nil value option like text_field
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r-- | actionview/CHANGELOG.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index ef48540015..b961dce4d1 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,17 @@ +* Fix `text_area` to behave like `text_field` when `nil` is given as + value. + + Before: + + f.text_field :field, value: nil #=> <input value=""> + f.text_area :field, value: nil #=> <textarea>value of field</textarea> + + After: + + f.text_area :field, value: nil #=> <textarea></textarea> + + *Joel Cogen* + * Element of the `grouped_options_for_select` can optionally contain html attributes as the last element of the array. |