title: Displaying Only the first x words of a string in rails
body: <pre><code>&lt;%= message.content %&gt;
  </code></pre>
  
  <p>I can display a message like this, but in some situations <em>I would like to display only the first 5 words of the string and then show an ellipsis (...)</em></p>