+ # Delete a node. Doesn't actually delete it, but retains its history in a wiki-like way.
+ # FIXME remove all the fricking SQL
+ def delete
+ begin
+ node = Node.find(params[:id])
+ node.delete_with_history(@user)
+ rescue ActiveRecord::RecordNotFound
+ render :nothing => true, :status => :not_found
+ rescue OSM::APIAlreadyDeletedError
+ render :text => "", :status => :gone
+ rescue OSM::APIPreconditionFailedError
+ render :text => "", :status => :precondition_failed
+ end