class Interview::NestedFormAddImages

Public Instance Methods

build(b) click to toggle source
# File lib/interview/controls/nested_form_add_images.rb, line 4
def build(b)
  b.section html_class: "clearfix" do
    b.section style: 'span', html_class: "btn btn-default fileinput-button" do
      b.text text: "Bilder hinzufügen", style: 'span' # todo
      b << h.file_field_tag("upload_buffer[attachment]", class: 'nested_form_add_images',
        multiple: true, data: {url: "/upload_buffers.json", type: 'POST'})
    end
  end
end