From 764e5c830c1148aaf15569f797d5ace2f7074c0e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 14 Mar 2024 10:52:27 -0400 Subject: Fix error pages aligning with puzzle IDs --- config/application.rb | 1 + public/404.html | 67 -------------------------------------------------- public/422.html | 67 -------------------------------------------------- public/500.html | 66 ------------------------------------------------- public/errors/404.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ public/errors/422.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ public/errors/500.html | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 201 insertions(+), 200 deletions(-) delete mode 100644 public/404.html delete mode 100644 public/422.html delete mode 100644 public/500.html create mode 100644 public/errors/404.html create mode 100644 public/errors/422.html create mode 100644 public/errors/500.html diff --git a/config/application.rb b/config/application.rb index 095566e..6d31fb0 100644 --- a/config/application.rb +++ b/config/application.rb @@ -23,5 +23,6 @@ module Wittle # # config.time_zone = "Central Time (US & Canada)" # config.eager_load_paths << Rails.root.join("extras") + config.exceptions_app = ActionDispatch::PublicExceptions.new(Rails.public_path.join("errors")) end end diff --git a/public/404.html b/public/404.html deleted file mode 100644 index 2be3af2..0000000 --- a/public/404.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The page you were looking for doesn't exist (404) - - - - - - -
-
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/public/422.html b/public/422.html deleted file mode 100644 index c08eac0..0000000 --- a/public/422.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The change you wanted was rejected (422) - - - - - - -
-
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/public/500.html b/public/500.html deleted file mode 100644 index 78a030a..0000000 --- a/public/500.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - We're sorry, but something went wrong (500) - - - - - - -
-
-

We're sorry, but something went wrong.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/public/errors/404.html b/public/errors/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/public/errors/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +
+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/errors/422.html b/public/errors/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/public/errors/422.html @@ -0,0 +1,67 @@ + + + + The change you wanted was rejected (422) + + + + + + +
+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/errors/500.html b/public/errors/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/public/errors/500.html @@ -0,0 +1,66 @@ + + + + We're sorry, but something went wrong (500) + + + + + + +
+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

+
+ + -- cgit 1.4.1