Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Includes:
FormTagHelper
Defined in:
lib/papermill/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#asset_upload(method, options = {}) ⇒ Object



7
8
9
# File 'lib/papermill/form_builder.rb', line 7

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

#assets_upload(method, options = {}) ⇒ Object



4
5
6
# File 'lib/papermill/form_builder.rb', line 4

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

#image_upload(method, options = {}) ⇒ Object



13
14
15
# File 'lib/papermill/form_builder.rb', line 13

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

#images_upload(method, options = {}) ⇒ Object



10
11
12
# File 'lib/papermill/form_builder.rb', line 10

def images_upload(method, options = {})
  papermill_upload_tag method, options
end