If I want to have functions to be called inside controllers, where should I put them?
The ApplicationController is here for that, since every Controller inherited from it.