title: Rails: how to find record before last?
body: <p>I can find last record in my table like in example below, but what if I want to find record before last, e.g. (last-1) or (last-2)..? 
  I have this example in my each loop:</p>
  
  <pre><code>Table.find(:last, :conditions =&gt; {:dogovor_id =&gt; p.id}).id
  </code></pre>