Example: a table, in which the power consumption is saved every few minutes.
What i am trying to do with this data using the groupdate gem:
@kWh = Consumption.group_by_hour(:at).average(:kw)
@kWh_per_day = @kWh.group_by_day(:at).sum(:average_kw)
For the second line I get an error: "no block given"
Any push in the right direction would be appreciated.