title: Referencing value in Ruby hash in .erb file. How do I get quotes and square brackets not to display when outputs to straight html in browser?
body: <p>my code in index.html.erb file is posted below. When I tested in a regular ruby file, I did not see any quotes/brackets in output. However, when I use same code in erb file I see quotes and square brackets displayed around each value when viewed in browser. Is there any way to get around this? </p>
  
  <pre><code>---
  title: Coast Guard Quiz
  ---
  
  &lt;%
  
  seaman_recruit = {
  
      img: "&lt;img src = 'images/USCG_SR.png'&gt;",
      name: "Seaman Recruit",
      en_class: "Seaman",
      abbr: "SR",
  }
  
  seaman_apprentice = {
      img: "&lt;img src = 'images/USCG_SA.png'&gt;",
      name: "Seaman Apprentice",
      en_class: "Seaman",
      abbr: "SA",
  }
  
  seaman = {
      img:  "&lt;img src = 'images/USCG_SM.png'&gt;",
      name: "Seaman",
      en_class: "Seaman",
      abbr: "SN",
  }
  
  ranks = [seaman_recruit, seaman_apprentice, seaman]
  
  ranks.shuffle!
  
  current_rank = ranks.shuffle!.first
  
  %&gt;
  
  &lt;p&gt;&lt;%= current_rank.values_at(:img) %&gt;&lt;/p&gt;
  &lt;p class="bld"&gt;&lt;%= current_rank.values_at(:name) %&gt;&lt;/p&gt;
  &lt;p&gt;&lt;%= current_rank.values_at(:en_class) %&gt;&lt;/p&gt;
  &lt;p&gt;&lt;%= current_rank.values_at(:abbr) %&gt;&lt;/p&gt;
  &lt;p&gt;&lt;%= current_rank.values_at(:title) %&gt;&lt;/p&gt;
  &lt;p&gt;&lt;%= current_rank.values_at(:paygrade) %&gt;&lt;/p&gt;
  </code></pre>
  
  <p><strong>For example, I see this:</strong></p>
  
  <p>["(actual image)"]</p>
  
  <p>["Seaman"]</p>
  
  <p>["Seaman"]</p>
  
  <p>["SN"]</p>
  
  <p>["Seaman (last name)"]</p>
  
  <p>["E3"]</p>
  
  <p><strong>And I want to see this:</strong></p>
  
  <p>(actual image)</p>
  
  <p>Seaman  </p>
  
  <p>Seaman</p>
  
  <p>SN</p>
  
  <p>Seaman (last name)</p>
  
  <p>E3</p>