Method: FileAttachmentsController#destroy
- Defined in:
- app/controllers/file_attachments_controller.rb
#destroy ⇒ Object
107 108 109 110 111 112 |
# File 'app/controllers/file_attachments_controller.rb', line 107 def destroy = FileAttachment.find(params[:id]) .destroy flash[:notice] = "Deleted File: #{@file_attachment.name}" redirect_to_index_or_attachable end |