哪位大神知道这两句话每句话是什么意思啊 @q = Person.ransack(params[:q]) @people = @q.result(distinct: true)
http://lmgtfy.com/?q=ransack+result+distinct
打不开呢
https://github.com/activerecord-hackery/ransack#user-content-problem-with-distinct-selects
ok 谢谢
ransack 查找满足 params[:q] 唯一不同的 person