title: auto increment value in each loop
body: <p>In code:</p>
  
  <pre><code>&lt;% @offers.each do |offer|%&gt;
    &lt;%= offer.percentageOff%&gt; &lt;b&gt;% OFF on order of&lt;/b&gt;
    &lt;%= image_tag('1407951522',:size=&gt;'10x10',:alt=&gt;'Rs.')%&gt;
    &lt;%= offer.amountforDiscount%&gt;
    &lt;%= button_to 'Delete',{:action=&gt;'destroy',:id=&gt;offer.id},class: "" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I am new in rails. I want to show all the offers in a <em>numbered list</em>, I can't use database table because <code>id</code> is not in order. For example:</p>
  
  <ol>
  <li><p>30 % OFF on order of Rs.2000</p></li>
  <li><p>13 % OFF on order of Rs.1000 </p></li>
  </ol>
  
  <p>How do i achieve this?</p>