>
> I have been finding most of the book samples don't have enough information 
> to actually implement what the second talks about.
>
> For example where/how do I implement routes_onerror
> routes_onerror = dict(application='error', controller='default', 
> function='index')
>

Did you read this section in the book: 
http://web2py.com/books/default/chapter/29/4#Routes-on-error? It starts 
with an example, and it mentions that it's a list of tuples (not a dict). 
The first item of a given tuple matches an app name and an error code 
(either or both of which can be wildcards), and the second item in the 
tuple is the URL where such errors should be redirected. If you want all 
errors (400's and 500's) to go to your error handler, you would do:

routes_onerror = [('yourapp/*', '/error/default/index')]

Anthony 

Reply via email to