X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/01cfcbd845c5d8d33f83bb22a24cf35932da2e29..9011118cd0fde89ed5d6c7eccf4bdd49c15b4818:/app/controllers/trace_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index fcf66dac1..b4e9d7f51 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -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