way.create_with_history @user
render :text => way.id.to_s, :content_type => "text/plain"
else
- render :nothing => true, :status => :bad_request
+ render :text => "", :status => :bad_request
end
end
way.update_from(new_way, @user)
render :text => way.version.to_s, :content_type => "text/plain"
else
- render :nothing => true, :status => :bad_request
+ render :text => "", :status => :bad_request
end
end
way.delete_with_history!(new_way, @user)
render :text => way.version.to_s, :content_type => "text/plain"
else
- render :nothing => true, :status => :bad_request
+ render :text => "", :status => :bad_request
end
end
render :text => doc.to_s, :content_type => "text/xml"
else
- render :nothing => true, :status => :bad_request
+ render :text => "", :status => :bad_request
end
end