2012-02-26 53 views

回答

0

做這種類型的查詢,最好的辦法是使用的acts_as_votable主頁中所述的緩存系統,然後執行此請求:Question.order("cached_votes_up desc")

0

你可以做多態屬於喜歡如下

Note.joins{notable(Person).outer}