diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-09-22 10:35:47 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-09-22 10:35:47 +0200 |
commit | 8842ce239562d3fbc82198ac3c4618935134ff39 (patch) | |
tree | da7276ec258bae7bbe021ade341c6288459bddd1 /actionview/lib | |
parent | d1a43d32e615b4a75117151b002266c560ce9061 (diff) | |
parent | 851760c0e18fb29fea9063f35dc1d2229de221c6 (diff) | |
download | rails-8842ce239562d3fbc82198ac3c4618935134ff39.tar.gz rails-8842ce239562d3fbc82198ac3c4618935134ff39.tar.bz2 rails-8842ce239562d3fbc82198ac3c4618935134ff39.zip |
Merge pull request #21712 from amitsuroliya/html_fix
Correcting output of `file_field` with `multiple` attribute option [ci skip]
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/form_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb index ebf5ea5b77..5a9a5d6d18 100644 --- a/actionview/lib/action_view/helpers/form_helper.rb +++ b/actionview/lib/action_view/helpers/form_helper.rb @@ -849,8 +849,8 @@ module ActionView # file_field(:user, :avatar) # # => <input type="file" id="user_avatar" name="user[avatar]" /> # - # file_field(:post, :image, :multiple => true) - # # => <input type="file" id="post_image" name="post[image]" multiple="true" /> + # file_field(:post, :image, multiple: true) + # # => <input type="file" id="post_image" name="post[image][]" multiple="multiple" /> # # file_field(:post, :attached, accept: 'text/html') # # => <input accept="text/html" type="file" id="post_attached" name="post[attached]" /> |