]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Return "404 Not Found" for users and traces which don't exist.
[rails.git] / app / controllers / trace_controller.rb
index de8b17f3025c65427f61edfeed9118d855577b8d..b758d0c4044598577c54c14798e722109c9a038a 100644 (file)
@@ -88,6 +88,8 @@ class TraceController < ApplicationController
         render :nothing, :status => :forbidden if @trace.user.id != @user.id
       end
     end
+  rescue ActiveRecord::RecordNotFound
+    render :nothing => true, :status => :not_found
   end
 
   def create