I have a record set that includes a date field, and want to determine how many unique dates are represented in the record set.
Something like:
Record
Outside of SQL:
Record.find(:all).group_by(&:date).count
ActiveSupport's Enumerable#group_by is indispensable.