From 15f26631062ae7258e0ebd1ef128a88f59def760 Mon Sep 17 00:00:00 2001 From: Thiago Pinto Date: Thu, 6 Dec 2012 02:21:15 -0500 Subject: adding example for f.file_input --- actionpack/lib/action_view/helpers/form_helper.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actionpack/lib/action_view/helpers/form_helper.rb') diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index be62cf70c6..92b88752d4 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -840,6 +840,9 @@ module ActionView # file_field(:post, :attached, accept: 'text/html') # # => # + # file_field(:post, :image, accept: 'image/png,image/gif,image/jpeg') + # # => + # # file_field(:attachment, :file, class: 'file_input') # # => def file_field(object_name, method, options = {}) -- cgit v1.2.3