Hi, having used ThinkingSphinx successfully for a couple of months (thanks for the great software!) I recently ran into problems using it together with the devise. Devise is a rather new gem to bring rack- based authentication to Rails.
Now, devise run well until I introduce ThinkingSphinx as a plugin. As soon as TS becomes part of the mix, I get strange startup errors like this: % script/ server 9:43 11/23 => Booting WEBrick => Rails 2.3.4 application starting on http://0.0.0.0:3000 Loading haml-edge gem. /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/ base.rb:1959:in `method_missing_without_paginate': undefined method `devise' for #<Class:0x2ae965f20a20> (NoMethodError) from /home/cjk/work/hot/hotrails/vendor/gems/mislav- will_paginate-2.3.11/lib/will_paginate/finder.rb:170:in `method_missing' from /home/cjk/work/hot/hotrails/app/models/user.rb:2 from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/dependencies.rb:380:in `load_without_new_constant_marking' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/dependencies.rb:380:in `load_file' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/dependencies.rb:521:in `new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/dependencies.rb:379:in `load_file' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/dependencies.rb:259:in `require_or_load' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/dependencies.rb:425:in `load_missing_constant' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/dependencies.rb:80:in `const_missing' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/dependencies.rb:92:in `const_missing' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/inflector.rb:361:in `constantize' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/inflector.rb:360:in `each' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/inflector.rb:360:in `constantize' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/ active_support/core_ext/string/inflections.rb:162:in `constantize' from /home/cjk/work/hot/hotrails/vendor/gems/devise-0.5.5/lib/ devise/mapping.rb:80:in `to' from /home/cjk/work/hot/hotrails/vendor/gems/devise-0.5.5/lib/ devise/mapping.rb:74:in `for' from /home/cjk/work/hot/hotrails/vendor/gems/devise-0.5.5/lib/ devise/rails/routes.rb:101:in `devise_for' ... Suddenly, devise is no longer initialized. Works perfectly when I disable the TS-plugin or use TS as a gem (perhaps because of the load-order?). However, I need to use TS as a plugin since I added a db-adapter to it to connect to ODBC datasources. Any suggestions on how to improve the situation would be appreciated. Claus -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=.
