def destroy
      @error_message.destroy

      respond_to do |format|
        format.html { redirect_to error_messages_url }
        format.json { head :no_content }
      end
    end
def destroy
      @error_message.destroy

      respond_to do |format|
        format.html { redirect_to error_messages_url }
        format.json { head :no_content }
      end
    end
DELETE /error_messages/1
 DELETE /error_messages/1.json