Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit 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
You can’t perform that action at this time.