render :nothing => true, :status => :method_not_allowed
end
rescue OSM::APIError => ex
+ logger.warn request.raw_post
render ex.render_opts
end
end
render :nothing => true, :status => :bad_request
end
rescue OSM::APIError => ex
+ logger.warn request.raw_post
render ex.render_opts
rescue ActiveRecord::RecordNotFound
render :nothing => true, :status => :not_found
if way.visible
nd_ids = way.nds + [-1]
- nodes = Node.find(:all, :conditions => "visible = 1 AND id IN (#{nd_ids.join(',')})")
+ nodes = Node.find(:all, :conditions => ["visible = ? AND id IN (#{nd_ids.join(',')})", true])
# Render
doc = OSM::API.new.get_xml_doc