Error - rake ultrasphinx:configure

Posted by patjoyce
Nov 07, 2008

A new Web Designer I work with was running into an error when attempting to configure ultrasphinx for his local Rails development environment.


rake ultrasphinx:configure

rake aborted!
Anonymous modules have no name to be referenced by
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:402:in `to_constant_name'
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:214:in `qualified_name_for'
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:477:in `const_missing'
/home/deploy/apps/stylespotted/releases/20080131024018/vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:33:in `load_constants'

I was baffled for this for a few days. We finally figured it out this afternoon.

He is a UI developer, and new to Rails, so hadn’t created his DB. The fix was simple:


rake db:create
rake db:migrate
rake ultrasphinx:configure

And he had a working development.conf for Ultrasphinx