if @way.visible
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
else
head :gone
end
end
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
else
head :gone
end
@ways = Way.find(ids)
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
end
##
@ways = Way.where(:id => wayids, :visible => true)
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
end
end
end