Method: Certify::CertificatesController#destroy

Defined in:
app/controllers/certify/certificates_controller.rb

#destroyObject

DELETE /certificates/1 DELETE /certificates/1.json



56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'app/controllers/certify/certificates_controller.rb', line 56

def destroy
  # get the ca
  @authority = Authority.find(params[:certify_authority_id])

  # get the certificate
  @certificate = Certificate.find(params[:id])
  @certificate.destroy
  
  respond_to do |format|
    format.html { redirect_to authority_path(@authority), notice: 'Certificate removed' }
    format.json { head :no_content }
  end
end