X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/07ad4a36ea398f4bba431d19d5d99e0160ad814b..183841d10e7acbb6dad17cc7cc3283817d44164b:/app/controllers/trace_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index de8b17f30..b758d0c40 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -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