Find file History
Pull request Compare This branch is 2 commits ahead, 144 commits behind ryanb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
store
README

README

Railscasts Episode #223: Charts

http://railscasts.com/episodes/223

rails console

  Order.group("date(purchased_at)").select("purchased_at, sum(total_price) as total_price").first.total_price.to_f
  Order.group("date(purchased_at)").select("purchased_at, sum(total_price) as total_price").first.purchased_at.to_date