Skip to content
Pull request Compare This branch is 35 commits behind ryanb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
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
Something went wrong with that request. Please try again.