Method: Comments::CommentsController#destroy
- Defined in:
- app/controllers/comments/comments_controller.rb
#destroy ⇒ Object
DELETE /comments/1
29 30 31 32 33 34 35 |
# File 'app/controllers/comments/comments_controller.rb', line 29 def destroy if @comment.user_id != current_user.id raise ActiveRecord::RecordNotFound end @comment.destroy end |