way history needs to reference nodes with ref=... not id=...
authorFrederik Ramm <frederik@remote.org>
Fri, 26 Oct 2007 18:14:48 +0000 (18:14 +0000)
committerFrederik Ramm <frederik@remote.org>
Fri, 26 Oct 2007 18:14:48 +0000 (18:14 +0000)
app/models/old_way.rb

index bb267dffbfd673ec3b53f0703ce46b348adf9dbf..aa9c81d0ab9b5864c9e6f809a24c29e08fdf11d3 100644 (file)
@@ -99,7 +99,7 @@ class OldWay < ActiveRecord::Base
     
     self.old_nodes.each do |nd| # FIXME need to make sure they come back in the right order
       e = XML::Node.new 'nd'
-      e['id'] = nd.node_id.to_s
+      e['ref'] = nd.node_id.to_s
       el1 << e
     end