Follow Along as I Stumble on the Path to Learning RoR

Deleting a Paperclip Attachment

In order to delete an attachment, follow this syntax, where:

@page => controller
image =>  attachment name

@page.image.destroy #Will remove the attachment and save the model
http://stackoverflow.com/questions/4435826/rails-paperclip-how-to-delete-attachment
Advertisements

Comments are closed.