본문 바로가기

카테고리 없음

[ruby] group by 해서 각 개수 뽑아내는 문법

Mail.count(:group => :country, :conditions => {:validated => true})