truncate_words vs. truncate: a comparison of the two methods
In Ruby on Rails, there are two main methods for truncating strings provided by Active Support: truncate_words
and truncate
. Both methods take a string as their argument, but they have different behaviors.