def destroy
    @descriptor.destroy
    respond_to do |format|
      if @descriptor.destroyed?
        format.html { destroy_redirect @descriptor, notice: 'Descriptor was successfully destroyed.' }