title: Rails how to loop to get just one item
body: <p>How to loop to get just one item of the table?</p>
  
  <p>if you use  </p>
  
  <pre><code>&lt;% @blocks.first(4).each do |b| %&gt;
  </code></pre>
  
  <p>will get the first 4 of the table</p>
  
  <p>but to get just the item 5?</p>
  
  <p>i've tried using find <code>&lt;% @blocks.find(5).each do |b| %&gt;</code></p>
  
  <p>but keep getting the firsts 5 of the table</p>
  
  <p>so, someone know?</p>
  
  <p>inside block </p>
  
  <pre><code>&lt;% @blocks.first(1).each do |b| %&gt;
  
    &lt;li &gt;
  
      &lt;%= link_to  content_tag(:span, b.category),  block_path(:id =&gt; b.id), :class =&gt; "drop" %&gt;
  &lt;% end %&gt;
  </code></pre>