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

index 58e98bef224288ec0cb5df3fff45235112f0b23a..f92fab271036e3999b944c5917a4ac5a364c0965 100644 (file)
@@ -21,7 +21,7 @@ class SegmentController < ApplicationController
         end
 
         if segment.save_with_history
-          render :text => segment.id
+          render :text => segment.id.to_s
         else
           render :nothing => true, :status => 500
         end