Handling MySQL Connection failures

Hi all,

Hopefully a quick question for someone. This morning we had our
database server go down and that caused out Rails app to just spit out
“Application Error” to all access. Is there a way to catch the
exception for the mysql connection failure to allow a redirect to a
static page?

Thanks

Peer

On 2/28/07, Peer A. [email protected] wrote:

Hi all,

Hopefully a quick question for someone. This morning we had our
database server go down and that caused out Rails app to just spit out
“Application Error” to all access. Is there a way to catch the
exception for the mysql connection failure to allow a redirect to a
static page?

With rails 1.2, i believe in case of ANY error, rails would display
500.html page from /public directory, so you can design that page to
look better and avoid “Application Error”.


gnufied

There was only one Road; that it was like a great river: its springs
were at every doorstep, and every path was its tributary.
http://people.inxsasia.com/~hemant