How can I write an AR find query to have the results ordered by the number of records in a has_many association?
class User < ActiveRecord::Base has_man
Your question doesn't make sense. The :order parameter specifies a column name and an optional ordering direction i.e. asc(ending) or desc(ending).
:order
What is the result that you're trying to achieve?