Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/filepickerio_rails/action_view/form_builder.rb

Instance Method Summary collapse

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, options={})
  @template.fp_file_field(@object_name, method, text, options)
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 fp_save_button(method, text, mime, options={}, &block)
  @template.fp_save_button(@object, method, text, mime, options, &block)
end