0
我想安裝模糊搜索插件。我搜索了很多,對面傳來:act_as_fuzzy_search插件安裝
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
有誰知道如何解決這個問題?
是的,我根據自述安裝,我得到的錯誤。 – Wasi