summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/errors_controller.rb9
-rw-r--r--app/views/errors/not_found.html.haml7
-rw-r--r--app/views/errors/server_error.html.haml7
3 files changed, 23 insertions, 0 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
new file mode 100644
index 0000000..bf9329c
--- /dev/null
+++ b/app/controllers/errors_controller.rb
@@ -0,0 +1,9 @@
+class ErrorsController < ApplicationController
+
+ def not_found
+ end
+
+ def server_error
+ end
+
+end
diff --git a/app/views/errors/not_found.html.haml b/app/views/errors/not_found.html.haml
new file mode 100644
index 0000000..22b6a55
--- /dev/null
+++ b/app/views/errors/not_found.html.haml
@@ -0,0 +1,7 @@
+.hero-unit
+ %h1 Page not found.
+ %h2 The page you were looking for doesn't exist.
+ %p.lead You may have mistyped the address or the page may have moved.
+ %a.btn.btn-primary.btn-large{href:'/'}
+ %i.icon-home.icon-white
+ Home
diff --git a/app/views/errors/server_error.html.haml b/app/views/errors/server_error.html.haml
new file mode 100644
index 0000000..173cdad
--- /dev/null
+++ b/app/views/errors/server_error.html.haml
@@ -0,0 +1,7 @@
+.hero-unit
+ %h1 Ouch!
+ %h2 We ran into a server error.
+ %p.lead The problem has been logged and we will look into it.
+ %a.btn.btn-primary.btn-large{href:'/'}
+ %i.icon-home.icon-white
+ Home