• J
    Fix button_to's params option to support nested names. · 459cd7fd
    James Coleman 提交于
    In e6e0579d 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.
    459cd7fd
url_helper_test.rb 31.4 KB