Render nothing on a successful delete.

This commit is contained in:
Tom Hughes 2008-07-22 14:16:07 +00:00
parent 3d5ee2675b
commit a0545ba4e5

View file

@ -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