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

index fcff0fc4528678c2d760b0500ee1359738beb6ca..10e0f844278ecfc3856f7eb9f93ef11bc6f20157 100644 (file)
@@ -16,7 +16,7 @@ class WayController < ApplicationController
         end
 
         if way.save_with_history
-          render :text => way.id
+          render :text => way.id.to_s
           return
         else
           render :nothing => true, :status => 500