From a0545ba4e524c96e0d7b751e2d856ab672dd78b3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 22 Jul 2008 14:16:07 +0000 Subject: [PATCH 1/1] Render nothing on a successful delete. --- app/controllers/node_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 1e0deb140..4a7527734 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -70,6 +70,8 @@ class NodeController < ApplicationController begin node = Node.find(params[:id]) node.delete_with_history(@user) + + render :nothing => true rescue ActiveRecord::RecordNotFound render :nothing => true, :status => :not_found rescue OSM::APIError => ex -- 2.43.2