Truncate by Word Count in Rails
Rails has a convenient method for truncating strings based on word count.
The method automatically adds ...
to the end of the string to indicate that the string has been shortened. You can customize this omission by passing an omission argument.