def destroy
      record.destroy

      respond_to do |format|
        format.html { redirect_to records_path, notice: "#{model} was successfully destroyed." }
        format.json { head :no_content }
      end
    end
def destroy
      record.destroy

      respond_to do |format|
        format.html { redirect_to records_path, notice: "#{model} was successfully destroyed." }
        format.json { head :no_content }
      end
    end
DELETE /model/1