]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/issues_controller.rb
Use bootstrap utility class instead of custom css
[rails.git] / app / controllers / issues_controller.rb
index d136e7230a4b7baf3ccd6eebfda383843598fdc2..cd3584f027536b00e067f04050d234893b68f921 100644 (file)
@@ -82,6 +82,6 @@ class IssuesController < ApplicationController
   def find_issue
     @issue = Issue.visible_to(current_user).find(params[:id])
   rescue ActiveRecord::RecordNotFound
   def find_issue
     @issue = Issue.visible_to(current_user).find(params[:id])
   rescue ActiveRecord::RecordNotFound
-    head :not_found
+    redirect_to :controller => "errors", :action => "not_found"
   end
 end
   end
 end