get the recordset of users who submitted resources in order of who submitted the most rails
===

Users can submit resources.  I want to show the users who are most 'active' by showing the users who have submitted resources and comments and show the results in  order of the user with the most submitted the most resources and comments combined to the least. 


    **Resource**
    has_many :users, :through => :kits
    has_many :kits
    belongs_to :submitter, class_name: "User"
    
    **User**
    has_many :resources, :through => :kits
    has_many :kits
    has_many :submitted_resources, class_name: "Resource", foreign_key: "submitter_id"
    
    **Kits**
    belongs_to :resource
    belongs_to :user
    
    **Comments**
     belongs_to :user

I am a NOOB when it comes to this kind of sql in Rails. How can I get this record set?