title: Convert array of hashes to csv
body: <p>I have an array of hashes, like so:</p>
  
  <pre><code>[{:id =&gt; 1, :name =&gt; "test", :status =&gt; "active", :desc =&gt; "test desc"}, {...}]
  </code></pre>
  
  <p>I need to turn this into a CSV. I realise I could use <code>CSV.generate</code> (I'm using ruby 1.9) to generate the CSV. </p>
  
  <p>Would it be an idea to turn the hashes into array's first with <code>to_a</code>?</p>