Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding example for f.file_input

  • Loading branch information...
commit 4aced1f0730896128e9b8d68f9cacc00328b31ec 1 parent 7cf2912
@thejamespinto thejamespinto authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  actionpack/lib/action_view/helpers/form_helper.rb
View
3  actionpack/lib/action_view/helpers/form_helper.rb
@@ -834,6 +834,9 @@ def hidden_field(object_name, method, options = {})
# 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]" />
#
Please sign in to comment.
Something went wrong with that request. Please try again.