I am usign the rails plugin acts_as_ferret. All my models have the
following code:
acts_as_ferret :store_class_name => true
I am trying to search across 5 models, but I’m just testing with two for
now. I have read all the other topics as best I can, but have not seen
anyone with the same problem, or a solution that works.
In my search_controller I have the following code:
@results = FilmSchool.multi_search(params[:search_query],
[ProductionCompany])
I have been successful in using find_by_contents to return results from
the FilmSchool model, and when I try and use multi_search I get the
following error in the browser:
undefined method `multi_search’ for #Class:0x3708480
The trace looks like this:
vendor/rails/activerecord/lib/active_record/base.rb:1532:in
`method_missing_without_paginate’
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:93:in
`method_missing’
app/controllers/site/search_controller.rb:4:in `search’
Am I missing something? Any help is appreciated.