title: How to convert ActiveRecord results into an array of hashes
body: <p>I have an ActiveRecord result of a find operation:</p>
  
  <pre><code>tasks_records = TaskStoreStatus.find(
    :all,
    :select =&gt; "task_id, store_name, store_region",
    :conditions =&gt; ["task_status = ? and store_id = ?", "f", store_id]
  )
  </code></pre>
  
  <p>Now I want to convert this results into an array of hashes like this:</p>
  
  <pre><code>[0] -&gt;  { :task_d =&gt; 10, :store_name=&gt; "Koramanagala", :store_region=&gt; "India" }
  
  [1] -&gt; { :task_d =&gt; 10, :store_name=&gt; "Koramanagala", :store_region=&gt; "India" }
  
  [2] -&gt;  { :task_d =&gt; 10, :store_name=&gt; "Koramanagala", :store_region=&gt; "India" }
  </code></pre>
  
  <p>so that I will be able to iterate through the array and to add more elements to hashes and later to convert the result into <code>JSON</code> for my API response. How can I do this?</p>