title: Ruby how to loop the two objects at the same time
body: <p>While I do @songs.each<br>
  I'd like to do @artist.each at the same time.<br>
  So I can make the list.</p>
  
  <pre><code>&lt;% @songs.each do |song|  %&gt;
        &lt;p class="list-group-item"&gt;&lt;%= truncate(song.to_s, length: 10) %&gt;&lt;/p&gt;
  &lt;% end %&gt;
  
  &lt;% @artists.each do |artist| a%&gt;
  &lt;p class="list-group-item"&gt;&lt;%= truncate(aritst.to_s, length: 10) %&gt;&lt;/p&gt;
  </code></pre>