title: Ruby Hash: can't convert String into Integer
body: <p>I am new to Ruby, and I am having some problems with hashes.</p>
  
  <p>I have XML returned from the YouTube API that I converted into a hash. Here is the hash returned by Hash.from_xml(): <a href="http://pastebin.com/9xxE6iXU" rel="nofollow">http://pastebin.com/9xxE6iXU</a></p>
  
  <p>I am trying to grab specific elements from the hash for each result, such as the title, link, author, etc. Whenever I try to loop through the hash or grab a specific element, I receive a "can't convert String into Integer" error.</p>
  
  <p>Here is the code I am using for the loop: </p>
  
  <pre><code>@data["feed"]["entry"]["title"].each do  |key, value|
      "&lt;p&gt;"+key+" "+value+"&lt;/p&gt;"
  end
  </code></pre>
  
  <p>I have also tried grabbing specific elements, such as @data["feed"]["entry"]["title"][0].</p>
  
  <p>How do I loop through the hash and grab specific elements out?</p>