While I realize you are supposed to use a helper inside a view, I need a helper in my controller as I\'m building a JSON object to return.
It goes a little like this:
In general, if the helper is to be used in (just) controllers, I prefer to declare it as an instance method of class ApplicationController.
class ApplicationController