Se pueden eliminar anotaciones

This commit is contained in:
Abigail Sosa
2015-11-17 20:47:27 -07:00
committed by rgarcia
parent 5743068780
commit cf8a952b0b

View File

@@ -16,7 +16,14 @@ class AnnotationsController < ApplicationController
end end
end end
def destroy
@annotation = Annotation.find(params[:id])
@annotation.destroy
render json: { status: :ok }
end
private private
def annotation_params def annotation_params
params params
.require(:annotation) .require(:annotation)