On 2/28/07, Peer Allan
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---