title: Ruby: How do I iterate over an array of hashes and return the values in a single string?
body: <p>Sorry if this obvious, I'm just not getting it.  If I have an array of hashes like:</p>
  
  <pre><code>people = [{:name =&gt; "Bob", :occupation=&gt; "Builder"}, {:name =&gt; "Jim", :occupation =&gt;
  "Coder"}]
  </code></pre>
  
  <p>And I want to iterate over the array and output strings like: "Bob: Builder". How would I do it?  I understand how to iterate, but I'm still a little lost.  Right now, I have:</p>
  
  <pre><code>people.each do |person|
    person.each do |k,v|
      puts "#{v}"
    end
  end
  </code></pre>
  
  <p>My problem is that I don't understand how to return both values, only each value separately.  What am I missing?</p>
  
  <p>Thank you for your help.</p>