aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorThiago Pinto <tapgyn@gmail.com>2012-12-06 02:13:33 -0500
committerThiago Pinto <tapgyn@gmail.com>2012-12-06 02:13:33 -0500
commit4aced1f0730896128e9b8d68f9cacc00328b31ec (patch)
treee701880ad3e8717109883565858d1aac8e34f97a /actionpack/lib/action_view/helpers/form_helper.rb
parent7cf2912f062f5836d8fa772325411ab1e04715f2 (diff)
downloadrails-4aced1f0730896128e9b8d68f9cacc00328b31ec.tar.gz
rails-4aced1f0730896128e9b8d68f9cacc00328b31ec.tar.bz2
rails-4aced1f0730896128e9b8d68f9cacc00328b31ec.zip
adding example for f.file_input
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index ce51585b87..be62cf70c6 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -834,6 +834,9 @@ 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, :attached, accept: 'text/html')
# # => <input accept="text/html" type="file" id="post_attached" name="post[attached]" />
#