Class: PostAttachmentsController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/post_attachments_controller.rb

Overview

Controller for deleting post attachments

Instance Method Summary collapse

Instance Method Details

#destroyObject

delete /post_attachments/:id



9
10
11
12
13
# File 'app/controllers/post_attachments_controller.rb', line 9

def destroy
  @entity.destroy

  redirect_to(admin_post_path(id: @entity.post_id))
end