New node id is now returned complete
authorNick Black <nickb@svn.openstreetmap.org>
Tue, 20 Mar 2007 13:05:53 +0000 (13:05 +0000)
committerNick Black <nickb@svn.openstreetmap.org>
Tue, 20 Mar 2007 13:05:53 +0000 (13:05 +0000)
app/controllers/node_controller.rb

index 27c21c4815a78fea0da3c0846ac8d72559ba82b1..5cdbca827dffe35287313f6618f329e681c98e38 100644 (file)
@@ -19,7 +19,7 @@ class NodeController < ApplicationController
         node.user_id = @user.id
         node.visible = 1
         if node.save_with_history
-          render :text => node.id
+          render :text => node.id.to_s
         else
           render :nothing => true, :status => 500
         end