From 5b500404631d01e2393b7adb761df910d8a147ba Mon Sep 17 00:00:00 2001 From: Matthew Bellantoni Date: Sun, 6 Nov 2011 16:55:32 -0500 Subject: [PATCH] Add FileInput. --- lib/formtastic-bootstrap/form_builder.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/formtastic-bootstrap/form_builder.rb b/lib/formtastic-bootstrap/form_builder.rb index 61e31034..0ea909be 100644 --- a/lib/formtastic-bootstrap/form_builder.rb +++ b/lib/formtastic-bootstrap/form_builder.rb @@ -15,6 +15,12 @@ def email_field(method, input_html_options) end end + def file_field(method, input_html_options) + bootstrap_input_wrapping do + super(method, input_html_options) + end + end + def grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options) bootstrap_input_wrapping do super(method, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options)