Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这会返回错误。我不知道这句话有什么问题:(
@communitiies_count = user.get_up_voted Community.count
下次您可能也应该发布您遇到的错误,但我认为您想要的是:
@communities_count = user.get_up_voted(Community).count