Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- Defined in:
- lib/filepickerio_rails/action_view/form_builder.rb
Instance Method Summary collapse
-
#fp_file_field(method, text = nil, options = {}) ⇒ Object
Returns a input tag tailored for a Filepicker.io upload widget to be attached for the form object.
- #fp_save_button(method, text, mime, options = {}, &block) ⇒ Object
Instance Method Details
#fp_file_field(method, text = nil, options = {}) ⇒ Object
Returns a input tag tailored for a Filepicker.io upload widget to be attached for the form object
5 6 7 |
# File 'lib/filepickerio_rails/action_view/form_builder.rb', line 5 def fp_file_field(method, text=nil, ={}) @template.fp_file_field(@object_name, method, text, ) end |
#fp_save_button(method, text, mime, options = {}, &block) ⇒ Object
9 10 11 |
# File 'lib/filepickerio_rails/action_view/form_builder.rb', line 9 def (method, text, mime, ={}, &block) @template.(@object, method, text, mime, , &block) end |