title: passing and using hash object in ActiveRecord's new method- Rails
body: <p>Simple, quick, question.</p>
  
  <p>How can i pass a hash or associative array through my view/javascript to rails controller.
  In the contoller i want to use hash object in ActiveRecord's new method</p>
  
  <p>some thing like this</p>
  
  <pre><code> hash = {}
   hash = params[data]
   Task.new(hash)
  </code></pre>
  
  <p>I can pass and read individual fields, but i am looking for a better way.
  Thnx.</p>