title: Show only some words from post as preview
body: <p>I am using Ruby on Rails 3.2.1 and model @post. Problem is that I want to show only first paragraph or some words on my first app page like a preview, not all the content. How I can do that?</p>
  
  <p>index:</p>
  
  <pre><code>&lt;% @posts.each{|posts| %&gt;
          &lt;h1 class="title"&gt;&lt;%= link_to posts.title, posts %&gt;&lt;/h1&gt;
              &lt;p class="byline" style="text-align: right; font-weight: bold;"&gt;Raksts izveidots: &lt;%= posts.created_at.utc.strftime("%d.%m.%Y") %&gt;&lt;/p&gt;
              &lt;div class="entry"&gt;
                  &lt;p&gt;&lt;%= raw posts.content %&gt;&lt;/p&gt;
              &lt;/div&gt;
          &lt;p class="meta"&gt;&lt;a href="#" class="more"&gt;Read More&lt;/a&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="#" class="comments"&gt;Comments&lt;/a&gt; (33)&lt;/p&gt;           
      &lt;% } %&gt;
  </code></pre>