我正在使用Kaminari来分页查询中的一些结果,我在其中选择不同的记录。请看下面的控制器代码: @things = Thing.joins... # create a complex query that produces duplicate results
# I want to select distinct results: this produces the correct resu
当我打电话与雷分页上嵌入文档,我得到以下错误的集合: (Access to the collection for Document is not allowed since it is an embedded document, please access a collection from the root document.):
我如何能解决这个问题的任何想法?我已经安装了kaminari