[Borges-users] ErrorPage

Слепнев Владимир slepnev_v at rambler.ru
Mon Apr 19 01:58:24 EDT 2004


I'm trying to use ErrorPage. Already found two errors.

Borges::WalkBackPage#debug should be

def debug
   @exception.defaultAction
end

Otherwise we get an error: 'exception' has wrong number of arguments - 
0 for 1. This way it doesn't work either, because not all exceptions 
have a defaultAction (what naming convention is this anyway, Java? =)

Borges::ErrorPage#show should be

def show
     res = Borges::GenericResponse.new('text/html')
     res << "<h1>500 - Error</h1><p>There has been an internal error. 
 The system administrator has been notified."
     session.return_response(res)
end

Otherwise Ruby can't find the class GenericResponse.

Vladimir Slepnev


More information about the Borges-users mailing list