From: Tom Hughes Date: Tue, 22 Jul 2008 14:16:07 +0000 (+0000) Subject: Render nothing on a successful delete. X-Git-Tag: live~7569^2~308 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/a0545ba4e524c96e0d7b751e2d856ab672dd78b3 Render nothing on a successful delete. --- 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