Hi Pat,

Sorry I missed your response... 

When I type "UserAgent" in the console I get the following error:

2.1.0p0 :001 > UserAgent

RuntimeError: Circular dependency detected while autoloading constant 
UserAgent


When I type "UserAgent.count" in the console I get a different error:

2.1.0p0 :001 > UserAgent.count

LoadError: Unable to autoload constant UserAgent, expected 
.../app/indices/user_agent.rb to define it

Sjors

Op dinsdag 11 maart 2014 23:22:28 UTC+1 schreef Pat Allan:
>
> Hi Sjors
>
> What happens in a rails console when you refer to the model (by just 
> entering UserAgent)?
>
> — 
> Pat
>
> On 12 Mar 2014, at 8:37 am, Sjors Provoost 
> <[email protected]<javascript:>> 
> wrote:
>
> I'm trying to upgrade to Thinking Sphinx 3.1, but keep running into a 
> mysterious error on my Mac. 
>
> I have a trivial model UserAgent with no dependencies and no code in it:
>
> class UserAgent < ActiveRecord::Base
> end
>
> indices/user_agent.rb:
>
> ThinkingSphinx::Index.define :user_agent, :with => :active_record do
>   indexes :name
> end
>
> I get the following error when running the index task:
>
> rake ts:index
>
> Generating configuration to 
> /Users/sjors/dev/colligative/config/development.sphinx.conf
>
> rake aborted!
>
> Circular dependency detected while autoloading constant UserAgent
>
>
> I put a more detailed output as well as my Gemfile and sphinx.yml in this 
> gist: https://gist.github.com/Sjors/d53c8a94c8599ebfe22e
>
>
> Running Ruby 2.1.0, Rails 4.0.3 (also tried 4.0.0), thinking-sphinx 3.1.0 
> and a Postgres database.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to