From 4c82d3f0a46f18bd6b02f264f6c81bec85d416ed Mon Sep 17 00:00:00 2001 From: schneems Date: Sat, 9 Jun 2012 14:30:45 -0500 Subject: [PATCH] add prompt to 404 & 500 pages to check logs When new programmers push their code to a production server and receive an error they often don't know to check the logs, this simple reminder will help. Most professional applications have custom error pages so this change shouldn't affect them. The wording of the message should not confuse non-developer visitors. --- .../lib/rails/generators/rails/app/templates/public/404.html | 1 + .../lib/rails/generators/rails/app/templates/public/500.html | 1 + 2 files changed, 2 insertions(+) diff --git a/railties/lib/rails/generators/rails/app/templates/public/404.html b/railties/lib/rails/generators/rails/app/templates/public/404.html index 276c8c1c6a14d..3d875c342eabb 100644 --- a/railties/lib/rails/generators/rails/app/templates/public/404.html +++ b/railties/lib/rails/generators/rails/app/templates/public/404.html @@ -22,5 +22,6 @@

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/railties/lib/rails/generators/rails/app/templates/public/500.html b/railties/lib/rails/generators/rails/app/templates/public/500.html index dfdb7d0b05ea1..012977d3d2090 100644 --- a/railties/lib/rails/generators/rails/app/templates/public/500.html +++ b/railties/lib/rails/generators/rails/app/templates/public/500.html @@ -21,5 +21,6 @@

We're sorry, but something went wrong.

+

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