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