diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ab8f2af53..bb0f17831 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -20,10 +20,4 @@ def allow_geoblacklight_params def after_message_create_path main_app.try(:root_path) || '/' end - - protected - - def not_found - raise ActionController::RoutingError.new('Not Found') - end end diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 6557baa49..24b9fba69 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -1,9 +1,9 @@ class ErrorsController < ApplicationController def not_found - render status: 404, layout: 'blacklight', template: 'errors/not_found.html.erb' + render 'errors/not_found', status: :not_found end def internal_server_error - render status: 500, layout: 'blacklight', template: 'errors/internal_server_error.html.erb' + render 'errors/internal_server_error', status: :internal_server_error end -end +end \ No newline at end of file diff --git a/public/404.html b/public/404.html deleted file mode 100644 index b612547fc..000000000 --- a/public/404.html +++ /dev/null @@ -1,67 +0,0 @@ - - -
-You may have mistyped the address or the page may have moved.
-If you are the application owner check the logs for more information.
-If you are the application owner check the logs for more information.
-