Module: Dorsale::Alexandrie::AttachmentsHelper

Included in:
Dorsale::AllHelpers
Defined in:
app/helpers/dorsale/alexandrie/attachments_helper.rb

Instance Method Summary collapse

Instance Method Details

#attachment_form_for(attachable) ⇒ Object



4
5
6
# File 'app/helpers/dorsale/alexandrie/attachments_helper.rb', line 4

def attachment_form_for(attachable)
  render "dorsale/alexandrie/attachments/form", attachable: attachable
end

#attachments_for(attachable) ⇒ Object



12
13
14
# File 'app/helpers/dorsale/alexandrie/attachments_helper.rb', line 12

def attachments_for(attachable)
  render "dorsale/alexandrie/attachments/form_and_list", attachable: attachable
end

#attachments_list_for(attachable) ⇒ Object



8
9
10
# File 'app/helpers/dorsale/alexandrie/attachments_helper.rb', line 8

def attachments_list_for(attachable)
  render "dorsale/alexandrie/attachments/list", attachable: attachable
end