class Formtastic::Inputs::JfuUploadInput

Public Instance Methods

input_html_options() click to toggle source
Calls superclass method
# File lib/formtastic/inputs/jfu_upload_input.rb, line 6
def input_html_options
  super.merge( class: 'jfu_upload_input' )
end
to_html() click to toggle source
# File lib/formtastic/inputs/jfu_upload_input.rb, line 10
def to_html
  input_wrapping do
    label_html <<
      template.content_tag(:div, { class: 'jfu_upload_wrapper' }) do
        builder.file_field(method, input_html_options) <<
          template.content_tag(:ul)
      end
  end
end