add method to application controller (rather than a new resources controller