Break out 404 file

This commit is contained in:
Samuel Cochran 2014-03-26 11:12:55 +11:00
parent a4e62f2e92
commit 903e3ad2fb
2 changed files with 5 additions and 1 deletions

View File

@ -150,7 +150,7 @@ module MailCatcher
end
not_found do
"<html><body><h1>No Dice</h1><p>The message you were looking for does not exist, or doesn't have content of this type.</p></body></html>"
haml :"404"
end
end
end

4
views/404.haml Normal file
View File

@ -0,0 +1,4 @@
%html
%body
%h1 No Dice
%p The message you were looking for does not exist, or doesn't have content of this type.