I can’t figure out how to have an ActionController catch it’s own
exceptions.
For instance:
def thankyou
begin
render ‘nonexistentjustwanttoseetheexceptionthrownthankyou’
rescue ActionController::ActionControllerError => exc
render :text => exc.to_yaml
rescue Exception => exc
render :text => exc.to_yaml
end
end
get’s name errors - it seems that ActionController’s own exceptions
aren’t defined within its class!!! How do I solve this?
PS Also, how do I html escape text that I want to render using render
:text ?