response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\""
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
end
end
end
if @node.visible
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
else
head :gone
end
@nodes = Node.find(ids)
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
end
end
end
end
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
end
def version
response.last_modified = @old_element.timestamp
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
end
end
response.last_modified = @relation.timestamp
if @relation.visible
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
else
head :gone
end
@relations << relation
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
else
head :gone
end
@relations = Relation.find(ids)
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
end
def relations_for_way
end
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
end
end
end
if @way.visible
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
else
head :gone
end
end
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
else
head :gone
end
@ways = Way.find(ids)
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
end
##
@ways = Way.where(:id => wayids, :visible => true)
# Render the result
- render formats: [:xml]
+ render :formats => [:xml]
end
end
end