aboutsummaryrefslogtreecommitdiffstats
path: root/railties/html/422.html
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-09-24 22:50:43 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-09-24 22:50:43 +0000
commit959a1fc22dad10726c34d8fc03c8e0985ae0db9e (patch)
treeb41da138560a1dda907109ec49073fcea50f6552 /railties/html/422.html
parentdfcb5af2dcf2300b84f60f5de42561d20694f8b5 (diff)
downloadrails-959a1fc22dad10726c34d8fc03c8e0985ae0db9e.tar.gz
rails-959a1fc22dad10726c34d8fc03c8e0985ae0db9e.tar.bz2
rails-959a1fc22dad10726c34d8fc03c8e0985ae0db9e.zip
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
Diffstat (limited to 'railties/html/422.html')
-rw-r--r--railties/html/422.html30
1 files changed, 30 insertions, 0 deletions
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 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>The change you wanted was rejected (422)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/422.html -->
+ <div class="dialog">
+ <h1>The change you wanted was rejected.</h1>
+ <p>Maybe you tried to change something you didn't have access to.</p>
+ </div>
+</body>
+</html> \ No newline at end of file