Catch-all error redirecting


#1

i’m at the point where managment wants to see a rough prototype of my
rails
app. i’m confident it works well, but i’m sure things were missed
during the
brisk development cycle. as a result, i’d like to set up the app such
that if
an error occurs, a pretty page comes up saying ‘not yet implemented’ or
‘coming
soon.’ just something that doesnt dump a bunch of code on the screen,
whether
its a logic error, DB connection issue, validation issues, whatever.
i’m
assuming the code for this would go in application.rb, but i’m not sure
what to
put in it so it handles every error.


#2

rescue_action_in_pubic maybe ?

http://api.rubyonrails.com/classes/ActionController/Rescue.html#M000042