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 /actionpack/lib/action_dispatch/middleware/session/cookie_store.rb | |
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 'actionpack/lib/action_dispatch/middleware/session/cookie_store.rb')
0 files changed, 0 insertions, 0 deletions