diff options
author | James Coleman <jtc331@gmail.com> | 2014-09-23 20:38:23 -0400 |
---|---|---|
committer | James Coleman <jtc331@gmail.com> | 2016-02-19 11:09:15 -0500 |
commit | 459cd7fdd1aad97863f4dda0a385b422b70b9e9b (patch) | |
tree | 647aa258c6a0dcb2dc2d409239cfd6ee40498905 /actionview/CHANGELOG.md | |
parent | 73fb2977cab8cd9b8ed7bb61df3072e2ca74b3ce (diff) | |
download | rails-459cd7fdd1aad97863f4dda0a385b422b70b9e9b.tar.gz rails-459cd7fdd1aad97863f4dda0a385b422b70b9e9b.tar.bz2 rails-459cd7fdd1aad97863f4dda0a385b422b70b9e9b.zip |
Fix button_to's params option to support nested names.
In e6e0579defcfcf94ef1c4c1c7659f374a5335cdb the `params` option was added to the `button_to` helper. However, the patch doesn't support nested hashes so `{a: {b: 'c'}}` for example gets turned into a hidden form input with the name 'a' and the value being the string representation of the `{b: 'c'}` nested hash.
Since Rails supports nested hashes everywhere else (and even in the URL params of link_to and button_to), I believe this to be a bug/unfinished feature.
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r-- | actionview/CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index bebe78c360..461a26b10b 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,7 @@ +* Fix `button_to`'s `:params` option support to correctly generated input names for nested hashes/arrays. + + *James Coleman* + ## Rails 5.0.0.beta2 (February 01, 2016) ## * Fix stripping the digest from the automatically generated img tag alt |