]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
api fixes
[rails.git] / app / controllers / trace_controller.rb
index fcf66dac176d5d5245eb96116977c2196da481cc..b4e9d7f51aeadfbfc4306d5a4aabf50914cca694 100644 (file)
@@ -107,7 +107,7 @@ class TraceController < ApplicationController
     @trace.timestamp = Time.now
 
     if @trace.save
-      saved_filename = "/tmp/#{@trace.id}.gpx"
+      saved_filename = "/home/osm/gpx/#{@trace.id}.gpx"
       File.rename(filename, saved_filename)
 
       logger.info("id is #{@trace.id}")
@@ -115,7 +115,8 @@ class TraceController < ApplicationController
       redirect_to :action => 'mine'
     else
       # fixme throw an error here
-      # render :action => 'mine'
+       redirect_to :action => 'mine'
+       flash[:notice] = "You haven't entered a tag or a description for yoru traces."
     end
   end