Displaying 1 result from an estimated 1 matches for "merb_env".
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...