Design doubt- putting a method in the controller, in model..

Put it in the application helper module.