Module: ActionView::Helpers::FormTagHelper
- Included in:
- FormBuilder
- Defined in:
- lib/papermill/form_builder.rb
Instance Method Summary collapse
- #asset_upload_tag(assetable, method, options = {}) ⇒ Object
- #assets_upload_tag(assetable, method, options = {}) ⇒ Object
- #image_upload_tag(assetable, method, options = {}) ⇒ Object
- #images_upload_tag(assetable, method, options = {}) ⇒ Object
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, = {}) papermill_upload_tag method, { :gallery => false, :thumbnail => false, :assetable => assetable }.update() 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, = {}) papermill_upload_tag method, { :thumbnail => false, :assetable => assetable }.update() 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, = {}) papermill_upload_tag method, { :gallery => false, :assetable => assetable }.update() 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, = {}) papermill_upload_tag method, { :assetable => assetable }.update() end |