title: How to insert hash values into database?
body: <p>I have a hash like so:</p>
  
  <pre><code>{
   "feid"=&gt;32, 
   "fid"=&gt;11, 
   "fipl"=&gt;11, 
  }
  </code></pre>
  
  <p>I want to save each value to it's respective column in a database.</p>
  
  <p>I know I can do the following</p>
  
  <pre><code>    record = Metric.new
      record.feid = hash['feid']
      record.fid  = hash['fid']
      record.fipl = hash['fipl']
      record.save
  </code></pre>
  
  <p>But my hash is a lot longer than 3 elements and there must be much more simple way!</p>