title: Syntax for dynamically rendering array element's index value in HTML tag
body: <p>A collection of objects are found and are sorted on the basis of a unique value</p>
  
  <pre><code>@sections = Section.where('id IN (?)', @sections_uniq).to_a
  </code></pre>
  
  <p>This is then meant to be presented in the view as tabs (using foundation), with one tab for each unique value</p>
  
  <pre><code>&lt;% @sections.each do |section, index| %&gt;
     &lt;li&gt;
        &lt;input type="radio" name="tabs" id='tab&lt;%= index %&gt;' /&gt;
  </code></pre>
  
  <p>the index value is necessary to create on tab per unique value.</p>
  
  <p>No version of <code>&lt;%=</code>or <code>#{...}</code> seems to work.
  What is the syntax to generate that index value ( i.e. id='tab0', id='tab1'...) within the quoted value of the HTML tag?</p>