Order by count scope in rails

后端 未结 0 2002
野趣味
野趣味 2021-02-02 03:56

In my application I have a Student and a Participation model with a has_many relation. I would like to sort the students based on their number of active participations (i.e., pa

相关标签:
回答
  • 消灭零回复
提交回复
热议问题