I am using Paperclip (w/ Amazon s3) on Rails 3. I want to delete an existing attachment without replacing it using an update action.
I\'ve only foun
Was able to achieve this with less code, by just implementing a delete_attachment on the model's side.:
delete_attachment
class MyModel < ApplicationRecord has_attached_file :image def image_delete=(other) self.image = nil if other == "1" or other == true end end