By the way: Since helpers are automatically included in their corresponding views just put this shared peace of code in an extra module and include it in the helpers of the resources that need it. This way the detour through the controllers won't be needed anymore.