Sha256: b01c961637498c7d6ffbc0046eda649665c8cb6a9633ce7ab890c513d27ab313

Contents?: true

Size: 657 Bytes

Versions: 8

Compression:

Stored size: 657 Bytes

Contents

- form = ActionView::Helpers::FormBuilder.new(parent_name, parent, self, {})
= form.simple_fields_for attachment_relation[:name].to_sym, attachment, { child_index: child_index } do |fields|
  - partial_locals = { attachment: attachment, form: form, fields: fields, multiple: multiple, relation_key: attachment_relation[:key] }
  - partial_layout = 'layouts/simple_form_attachments/attachment_layout'
  = render partial: attachment.to_simple_form_partial_path, format: :html, layout: partial_layout, locals: partial_locals rescue render partial: 'simple_form_attachments/attachments/attachment', format: :html, layout: partial_layout, locals: partial_locals

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_form_attachments-1.2.0 app/views/simple_form_attachments/_attachment_upload_template.html.slim
simple_form_attachments-1.1.1 app/views/simple_form_attachments/_attachment_upload_template.html.slim
simple_form_attachments-1.1.0 app/views/simple_form_attachments/_attachment_upload_template.html.slim
simple_form_attachments-1.0.1 app/views/simple_form_attachments/_attachment_upload_template.html.slim
simple_form_attachments-1.0.0 app/views/simple_form_attachments/_attachment_upload_template.html.slim
simple_form_attachments-0.2.6 app/views/simple_form_attachments/_attachment_upload_template.html.slim
simple_form_attachments-0.2.5 app/views/simple_form_attachments/_attachment_upload_template.html.slim
simple_form_attachments-0.2.4 app/views/simple_form_attachments/_attachment_upload_template.html.slim