在我的应用程序中,我在:title上执行scope/search,查找搜索/过滤器我的记录。搜索本身工作正常,只是用户需要精确地编写title &他们无法搜索:title中的单词。 例如如果title是:此搜索酷,用户需要在开始搜索,并有完整的句子:此搜索进行搜索,他们可以不写凉爽并获得记录中有很酷的标题。 我scope样子: class Post < ActiveRecord::Base
您好我正在使用Filterrific Gem为我的用户页面添加搜索和筛选功能。 The Searching works just good,but got undefined method []'for nil:NilClass` error when I tried to implement the“sort by”filtering。 我这里指的Filterrific文档:http://fil