Group by with ActiveRecord in Rails
- by Adnan
Hello,
I have a the following table with rows:
================================================================
id | name | group1 | group2 | group3 | group4 |
================================================================
1 | Bob | 1 | 0 | 0 | 1|
================================================================
2 | Eric| 0…