diff options
author | Andy Waite <github.aw@andywaite.com> | 2013-05-05 12:32:00 +0100 |
---|---|---|
committer | Andy Waite <github.aw@andywaite.com> | 2013-09-18 19:56:46 +0100 |
commit | e6e0579defcfcf94ef1c4c1c7659f374a5335cdb (patch) | |
tree | d2d0b091287c7bb9f1bdcb9dd76b8d1ab1e93e3f /actionpack | |
parent | 539180cf8edaa405928162644dc617b4c179edff (diff) | |
download | rails-e6e0579defcfcf94ef1c4c1c7659f374a5335cdb.tar.gz rails-e6e0579defcfcf94ef1c4c1c7659f374a5335cdb.tar.bz2 rails-e6e0579defcfcf94ef1c4c1c7659f374a5335cdb.zip |
Add params option for button_to
The parameters are rendered as hidden form fields within the generated
form. This is useful for when a record has multiple buttons associated
with it, each of which target the same controller method, but which
need to submit different attributes.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 6e8ba88b77..6bd7b788bb 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,8 @@ +* Add `params` option to `button_to` form helper, which renders the given hash + as hidden form fields. + + *Andy Waite* + * Development mode exceptions are rendered in text format in case of XHR request. *Kir Shatrov* |