我想安装模糊搜索的插件。我搜索了很多,发现:
https://github.com/iulianu/rails-fuzzy-search
在我的模型中,我有:
class User < ActiveRecord::Base
include FuzzySearch
act_as_fuzzy_search :name, :email
property :id, Integer, :serial => true
property :name, String, :nullable => false , :format => /^[^<'&">]*$/, :length => 32
property :email,String, :nullable => false , :format => /^[^<'&">]*$/, :length => 32
.....
.....
end但是我得到了以下错误:
uninitialized constant User::FuzzySearch有人知道怎么解决这个问题吗?
发布于 2011-08-06 21:39:29
请参阅github页面上的自述文件:
安装
注意!以下插件是先决条件: script/plugin install git://github.com/blythedunham/eload-select.git详情请访问http://www.snowgiraffe.com/tech/329/eager-loading-select-plugin-when-select-plays-nice-with-include/
你安装必备插件了吗?
https://stackoverflow.com/questions/6965883
复制相似问题