title: How do I convert from old symbol to new ruby 1.9 hash syntax?
body: <p>I'm using morris.js to display charts in my application. In my controller I have the code:</p>
  
  <p><strong>controller</strong></p>
  
  <pre><code>@users_count = User.group('DATE(created_at)').count.map do |d, c| {date: d, count: c} end
  </code></pre>
  
  <p>From this I get:</p>
  
  <pre><code>[{:date=&gt;'2013-04-01', :count=&gt;1}, {:date=&gt;'2013-04-02', :count=&gt;1}]
  </code></pre>
  
  <p>When I try to pass this to morris.js as a data option it doesn't work. I need to convert this to:</p>
  
  <pre><code>[{date: '2013-04-01', count: 1}, {date: '2013-04-02', count: 1}]
  </code></pre>
  
  <p>Then it works.</p>
  
  <p>How can I do that?</p>