The padrino docs let you know how to do a before filter in the context of a controller, but I'm trying to do a global filter.
The problem I'm trying to solve is that my domain name should be forwarded to the www. version, but godaddy isn't doing it properly. So now I want to manually redirect in my code - and hence the global before filter.
Or should I be looking at 'middleware' instead?