From 959a1fc22dad10726c34d8fc03c8e0985ae0db9e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 24 Sep 2007 22:50:43 +0000 Subject: Added a default 422.html page to be rendered when ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved, or ActionController::InvalidToken is raised [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/CHANGELOG | 2 ++ railties/Rakefile | 2 +- railties/html/422.html | 30 ++++++++++++++++++++++++++++++ railties/html/500.html | 2 +- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 railties/html/422.html (limited to 'railties') diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 974f3a2ef5..6bca1a5824 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added a default 422.html page to be rendered when ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved, or ActionController::InvalidToken is raised [DHH] + * Added --skip-fixture option to script/generate model #6862 [sandofsky] * Print Rails version when starting console #7440 [eyematz] diff --git a/railties/Rakefile b/railties/Rakefile index f444e823f0..0df22c7a72 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -66,7 +66,7 @@ PUBLIC_DIRS = %w( images javascripts stylesheets ) TEST_DIRS = %w( fixtures unit functional mocks mocks/development mocks/test ) LOG_FILES = %w( server.log development.log test.log production.log ) -HTML_FILES = %w( 404.html 500.html index.html robots.txt favicon.ico images/rails.png +HTML_FILES = %w( 422.html 404.html 500.html index.html robots.txt favicon.ico images/rails.png javascripts/prototype.js javascripts/application.js javascripts/effects.js javascripts/dragdrop.js javascripts/controls.js ) BIN_FILES = %w( about console destroy generate performance/benchmarker performance/profiler process/reaper process/spawner process/inspector runner server plugin ) diff --git a/railties/html/422.html b/railties/html/422.html new file mode 100644 index 0000000000..b54e4a3cad --- /dev/null +++ b/railties/html/422.html @@ -0,0 +1,30 @@ + + + + + + + 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.

+
+ + \ No newline at end of file diff --git a/railties/html/500.html b/railties/html/500.html index f0aee0e9f1..0e9c14f4c6 100644 --- a/railties/html/500.html +++ b/railties/html/500.html @@ -5,7 +5,7 @@ - We're sorry, but something went wrong + We're sorry, but something went wrong (500)