Sha256: 5bb850f2301e6b28347b12db13877342a2fb7eb603a7ddedd4341d9cf6eb9c72
Contents?: true
Size: 634 Bytes
Versions: 50
Compression:
Stored size: 634 Bytes
Contents
<%= turbo_frame_tag 'destroy_attachment_form' do %> <%= form_with url: "/avo/resources/#{params[:resource_name]}/#{params[:id] }/active_storage_attachments/#{params[:attachment_name]}/#{params[:signed_attachment_id]}", method: :delete, html: { 'data-turbo-frame': 'destroy_attachment_form', 'data-controller': 'attachments', 'data-attachments-target': 'form', class: 'hidden' } do |form| %> <%= form.button 'destroy', type: :submit %> <%= form.hidden_field :referrer, value: request.referer, id: "referrer_destroy_attachment_#{params[:signed_attachment_id]}" %> <% end %> <% end %>
Version data entries
50 entries across 50 versions & 1 rubygems