]> git.openstreetmap.org Git - rails.git/blob - app/views/api/traces/trace.builder
Move generation of gpx_file XML from model to builder
[rails.git] / app / views / api / traces / trace.builder
1 xml.instruct! :xml, :version => "1.0"
2
3 # basic attributes
4
5 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
6   @traces.each do |trace|
7     osm << render(:partial => "api/traces/trace.builder", :locals => { :trace => trace })
8   end
9 end