This plugin used for delete attachment created by paperclip. It provides
two methods for this:
used for to point out that attachment attributes needs to be observed for
removing. You can point out multiple attributes with paperclip attachment
used for getting correct form field name (usually checkbox) that should
trigger attachment removing
sudo gem install PaperclipAttachmentRemover
In your model:
SomeThing << ActiveRecord::Base
In your update form:
form_for @something do |f|
f.label :icon, 'Icon picture'
f.label attachment_remover_name_for(:icon), 'Remove existing icon picture'
Copyright © 2010 v.valgis, released under the MIT license