title: Dynamically add to HTML list from Rails hash
body: <p>I have a hash with many values. For each of the values I want to generate a list entry.<br>
  When I do the following, only the last entry from the hash is displayed.</p>
  
  <pre><code>&lt;% data.each do |k, v| %&gt;
      &lt;li&gt;&lt;%= v['name'] %&gt; - &lt;%= v['email'] %&gt;&lt;/li&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><code>data</code> is loaded from a YAML</p>
  
  <pre><code>person:
     name: ABC
     email: xyz@gmail.com
  person:
     name: LMN
     email: qrs@yahoo.com
  </code></pre>
  
  <p>How do I add all the values from hash in a html list?
  Thanks</p>