@params['trace'].delete('gpx_file') # let's remove the field from the hash, because there's no such field in the DB anyway.
@trace = Trace.new(@params['trace'])
@trace.inserted = false
@trace.user_id = @user.id
@trace.timestamp = Time.now
if @trace.save
@params['trace'].delete('gpx_file') # let's remove the field from the hash, because there's no such field in the DB anyway.
@trace = Trace.new(@params['trace'])
@trace.inserted = false
@trace.user_id = @user.id
@trace.timestamp = Time.now
if @trace.save