aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authoramitkumarsuroliya <amitkumarsuroliya@gmail.com>2015-09-22 08:44:21 +0530
committeramitkumarsuroliya <amitkumarsuroliya@gmail.com>2015-09-22 14:02:24 +0530
commit851760c0e18fb29fea9063f35dc1d2229de221c6 (patch)
tree8358ba1cdf89c365f5b7394404127ec9af173787 /actionview/lib/action_view/helpers/form_helper.rb
parentb694796da076b1a0ceb0ffbaa66964c1914397c8 (diff)
downloadrails-851760c0e18fb29fea9063f35dc1d2229de221c6.tar.gz
rails-851760c0e18fb29fea9063f35dc1d2229de221c6.tar.bz2
rails-851760c0e18fb29fea9063f35dc1d2229de221c6.zip
Correcting output of `file_field` with `multiple` attribute option [ci skip]
Diffstat (limited to 'actionview/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/form_helper.rb4
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]" />