Should I do this in the controller or model?

Printable View