Module: ActionView::Helpers::FormTagHelper

Included in:
FormBuilder
Defined in:
lib/papermill/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#asset_upload_tag(assetable, method, options = {}) ⇒ Object



24
25
26
# File 'lib/papermill/form_builder.rb', line 24

def asset_upload_tag(assetable, method, options = {})
  papermill_upload_tag method, { :gallery => false, :thumbnail => false, :assetable => assetable }.update(options)
end

#assets_upload_tag(assetable, method, options = {}) ⇒ Object



20
21
22
# File 'lib/papermill/form_builder.rb', line 20

def assets_upload_tag(assetable, method, options = {})
  papermill_upload_tag method, { :thumbnail => false, :assetable => assetable }.update(options)
end

#image_upload_tag(assetable, method, options = {}) ⇒ Object



32
33
34
# File 'lib/papermill/form_builder.rb', line 32

def image_upload_tag(assetable, method, options = {})
  papermill_upload_tag method, { :gallery => false, :assetable => assetable }.update(options)
end

#images_upload_tag(assetable, method, options = {}) ⇒ Object



28
29
30
# File 'lib/papermill/form_builder.rb', line 28

def images_upload_tag(assetable, method, options = {})
  papermill_upload_tag method, { :assetable => assetable }.update(options)
end