New seg id is now returned complete
[rails.git] / 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