summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 074a1cfdf13..2365449707c 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -9,7 +9,7 @@ class ApplicationController < ActionController::Base
end
rescue_from ActiveRecord::RecordNotFound do |exception|
- render "errors/not_found", :layout => "error"
+ render "errors/not_found", :layout => "error", :status => 404
end
layout :layout_by_resource
@@ -58,15 +58,15 @@ class ApplicationController < ActionController::Base
end
def access_denied!
- render "errors/access_denied", :layout => "error"
+ render "errors/access_denied", :layout => "error", :status => 404
end
def not_found!
- render "errors/not_found", :layout => "error"
+ render "errors/not_found", :layout => "error", :status => 404
end
def git_not_found!
- render "errors/git_not_found", :layout => "error"
+ render "errors/git_not_found", :layout => "error", :status => 404
end
def method_missing(method_sym, *arguments, &block)