diff options
author | Thiago Pinto <tapgyn@gmail.com> | 2012-12-06 02:13:33 -0500 |
---|---|---|
committer | Thiago Pinto <tapgyn@gmail.com> | 2012-12-06 02:13:33 -0500 |
commit | 4aced1f0730896128e9b8d68f9cacc00328b31ec (patch) | |
tree | e701880ad3e8717109883565858d1aac8e34f97a /actionpack | |
parent | 7cf2912f062f5836d8fa772325411ab1e04715f2 (diff) | |
download | rails-4aced1f0730896128e9b8d68f9cacc00328b31ec.tar.gz rails-4aced1f0730896128e9b8d68f9cacc00328b31ec.tar.bz2 rails-4aced1f0730896128e9b8d68f9cacc00328b31ec.zip |
adding example for f.file_input
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 3 |
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]" /> # |