Skip to content

Controllers

royw edited this page Aug 15, 2012 · 5 revisions

Cookbook

FAQ

I have put code in after or after_all, but it's never called. Why ?

This is probably because you used redirect_referrer of redirect in your method. When used, those method completely get out of execution flow and bypass whatever code is next.

A workaround is to set response.status to a 30x (302, 303, ...) and add a Location header.

response.status = 302
response.headers['Location'] = 'http://somewhere.el.se'
Something went wrong with that request. Please try again.