app/views/_file.html.erb in media_magick-0.0.1 vs app/views/_file.html.erb in media_magick-0.1.0
- old
+ new
@@ -1,4 +1,6 @@
<li class="attachment" data-id="<%= attachment.to_param %>">
<%= link_to attachment.filename, attachment.url unless attachment.file.nil? %>
<%= link_to t('media_magick.remove'), "javascript://", method: "delete", confirm: t('media_magick.confirm_removal'), class: "remove btn btn-mini btn-danger" %>
+
+ <%= hidden_field_tag "#{model.parameterize}[#{relation.singularize}_ids][]", attachment.id if model && relation %>
</li>
\ No newline at end of file