标签: ruby-on-rails ruby-on-rails-3 controller
这会给出错误。我不知道这句话有什么问题:(
@communitiies_count = user.get_up_voted Community.count
答案 0 :(得分:3)
下次您应该发布错误,但我认为您想要的是:
@communities_count = user.get_up_voted(Community).count