When I use User.count(:all, :group => "name"), I get multiple rows, but it's not what I want. What I want is the count of the rows. How can I get it?
User.count(:all, :group => "name")
Try using User.find(:all, :group => "name").count
Good luck!