diff options
author | Azul <azul@leap.se> | 2014-05-05 12:22:52 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-19 14:23:25 +0200 |
commit | 89e9154499f67fd8c63e1098b3e50b317c690dd0 (patch) | |
tree | 03f80e2d1d7e07fa8049cf9c587a1683a4ccaf70 /app/views | |
parent | b9174fdc9d9bd403d9a16650bafc4715e3dbf2d4 (diff) |
custom error pages for 404 and 500 errors
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/errors/not_found.html.haml | 7 | ||||
-rw-r--r-- | app/views/errors/server_error.html.haml | 7 |
2 files changed, 14 insertions, 0 deletions
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 |