aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/CHANGELOG.md
diff options
context:
space:
mode:
authorJames Coleman <jtc331@gmail.com>2014-09-23 20:38:23 -0400
committerJames Coleman <jtc331@gmail.com>2016-02-19 11:09:15 -0500
commit459cd7fdd1aad97863f4dda0a385b422b70b9e9b (patch)
tree647aa258c6a0dcb2dc2d409239cfd6ee40498905 /actionview/CHANGELOG.md
parent73fb2977cab8cd9b8ed7bb61df3072e2ca74b3ce (diff)
downloadrails-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.md4
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