I have Sphinx and Thinking Sphinx 2.0.5 installed on my application and when I keep trying to run the command rake ts:index
it gives me this error:
rake aborted!
undefined method `indexes' for #<Riddle::Configuration:0x41b57b0>
Is is talking about my Product
model?
class Product < ActiveRecord::Base
attr_accessible :name
validates_presence_of :name
define_index do
indexes :name
end
end
Why I am getting this and how do I fix it?
rake ts:index --trace
? You will get a stacktrace that way. – Oversoldrake ts:index --trace
and here is my gist.github.com/1345070 so you can look at it. – Rorrys