How did it occur to me to put view-specific code in controller code? Truncating text is view-related. And truncate is a view helper method.