简体   繁体   English

未初始化的常量ThoughtSphinx :: Deltas :: DelayedDelta

[英]uninitialized constant ThinkingSphinx::Deltas::DelayedDelta

I'm attempting to get Thinking Sphinx working w/ Delayed Jobs but I am not having any success. 我正在尝试让Think Sphinx使用延迟的工作,但是我没有任何成功。 I keep getting the following error: 我一直收到以下错误:

uninitialized constant ThinkingSphinx::Deltas::DelayedDelta

I have thinking-sphinx (2.0.2), delayed_job (2.1.3), and ts-delayed-delta (1.1.1) installed. 我安装了思想狮身人面像(2.0.2),delayed_job(2.1.3)和ts-delayed-delta(1.1.1)。 I have restarted sphinx using rake ts:restart. 我已经使用rake ts:restart重新启动了狮身人面像。 I don't really know what else to try. 我真的不知道还能尝试什么。 Any suggestions? 有什么建议么?

Hey Kyle, I'm using the exact same stack with no problems whatsoever. 嗨,凯尔,我使用的是完全相同的堆栈,没有任何问题。 Please, make sure you have something like this in your Gemfile: 请确保您的Gemfile中包含以下内容:

gem 'ts-delayed-delta', '1.1.1', :require => 'thinking_sphinx/deltas/delayed_delta' 

If that doesn't help it'd be nice if you provided us with some more context. 如果那没有帮助,那么如果您向我们提供更多背景信息,将是很好的。 Backtrace would be nice. 回溯会很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM