title: Perform map method on model object Ruby on Rails
body: <p>I queried <code>@ingredient = Feed.find(params[:ingredient_id])</code> and it returned a model hash object like</p>
  
  <pre><code>&lt; Feed id: 1, ingredient: "Sorghum, Grain", cost_kg: 26.0, d_m: 88.0, c_p: 11.0, m_e: 3212.0, c_f: 2.3, e_e: 2.1, ash: 2.6, ca: nil, p:
  0.32, lys: 0.22, met: 0.15, trp: 0.17, created_at: "2016-01-26 12:54:05", updated_at: "2016-01-26 12:54:05"&gt;
  </code></pre>
  
  <p>I want to take divide all the <code>float values</code>, in the response  with <code>2</code> . Please pardon me if it sounds creepy :P</p>
  
  <p>I tried to  do it through <code>map/select</code> combination but couldn't succeed</p>