]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
compression!
[rails.git] / app / controllers / trace_controller.rb
index 1c1b968d6fd6f8bc140f98dc4883861a27ce0dc8..0b39d52ce8b8def2d51b00494bfa4bb054309ac5 100644 (file)
@@ -6,6 +6,10 @@ class TraceController < ApplicationController
     @traces = Trace.find(:all)
   end
 
+  def mine
+    @traces = Trace.find(:all, :conditions => ['user_id = ?', @user.id])
+  end
+
   def create
     @params['trace']['name'] = @params['trace']['gpx_file'].original_filename.gsub(/[^a-zA-Z0-9.]/, '_') # This makes sure filenames are sane
     @params['trace']['data'] = @params['trace']['gpx_file'].read