title: How to iterate through an array of hashes in ruby
body: <p>Trying to iterate over an array using ruby and it is miserably failing, </p>
  
  <pre><code>My Array
  people = [{first_name: "Gary", job_title: "car enthusiast", salary: "14000" },
  {first_name: "Claire", job_title: "developer", salary: "15000"},
  {first_name: "Clem", job_title: "developer", salary: "12000"}]
  </code></pre>
  
  <p>How to iterate over the above hash to output only the salary value???</p>
  
  <p>I tried using:</p>
  
  <pre><code>people.each do |i,j,k|
    puts "#{i}"
  end
  </code></pre>
  
  <p>The results are as below and is not what i was intending,</p>
  
  <pre><code>{:first_name=&gt;"Gary", :job_title=&gt;"car enthusiast", :salary=&gt;"14000"}
  {:first_name=&gt;"Claire", :job_title=&gt;"developer", :salary=&gt;"15000"}
  {:first_name=&gt;"Clem", :job_title=&gt;"developer", :salary=&gt;"12000"}
  </code></pre>
  
  <p>Is there a way to iterate through this array and simply list out only the salary values and not the rest?</p>