Displaying 1 result from an estimated 1 matches for "html_exception".
2007 Jun 19
0
Default 500 Error Page in Production
Currently, Merb just shows a string on error: "500 Internal Server Error"
I''ve added this to my merb_init.rb:
if MERB_ENV == ''production''
module Merb
def self.html_exception(e)
File.read(DIST_ROOT + "/public/500.html")
end
end
end
http://nubyonrails.com/500.html
Potentially a plugin could be written to log this to the database.
However, I think the default in production should be to render a
500.html error page from the public directory. This al...