Hi Pat,

I'm using Rails 1.2.6 which didn't have that ability, so no.  I was
able to get it working with this change:

I edited the .../ruby/gems/1.8/gems/thinking-sphinx-1.3.15/lib/
thinking_sphinx/tasks.rb file, replacing this:
 Rails.configuration.cache_classes = false

With this:

         Rails::Initializer.run do |config|
           config.cache_classes = false
         end

It now runs, but won't build the index.  I think that problem is
related to something other than ts, though.  Its complaining about
expecting a model to be defined in its file, which it is. Probably a
missing gem.

Thanks!

On Feb 8, 8:54 pm, Pat Allan <[email protected]> wrote:
> Hi Brian
>
> How do you have TS set up as a gem in environment.rb? I've just tried in 
> 2.0.5, and it doesn't like the config.gem call...
>
> --
> Pat
>
> On 09/02/2010, at 8:27 AM, brian wrote:
>
> > I'm still having this issue with Ruby 1.8.7, Rails 1.2.6 and the ts
> > gem 1.3.15
>
> > What is the resolution?
>
> > Thanks!
>
> > On Jan 30, 1:50 am, Pat Allan <[email protected]> wrote:
> >> Just for those who come across this thread - this issue should be fixed (a 
> >> month or two ago).
>
> >> --
> >> Pat
>
> >> On 07/09/2009, at 12:52 AM, Matt Pokress wrote:
>
> >>> I have tried it both ways.  My preferredmethodis as a plugin.
>
> >>> On Sat, Sep 5, 2009 at 5:05 AM, Pat Allan <[email protected]> 
> >>> wrote:
>
> >>> It should work with 2.0.2 - I try to keep TS happy with Rails versions
> >>> 1.2.6 and later.
>
> >>> How are you installing TS - as a gem, or as a plugin?
>
> >>> --
> >>> Pat
>
> >>> On 04/09/2009, at 3:20 PM, mpokress wrote:
>
> >>>> Hi-
>
> >>>> I am trying to add TS to an older Rails 2.0.2 project.  I have TS
> >>>> working properly in my newer 2.3.2 based projects.
>
> >>>> Is the newest TS version (pulling from github) compatible with Rails
> >>>> 2.0.2.  The error I get on Linux machine when I try to run rake
> >>>> ts:conf (or any rake task, for that matter) is:
>
> >>>> no such file to load -- thinking_sphinx/index/builder
> >>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> >>>> `gem_original_require'
> >>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> >>>> `require'
> >>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
> >>>> active_support/dependencies.rb:496:in `require'
> >>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
> >>>> active_support/dependencies.rb:342:in `new_constants_in'
>
> >>>> I get a different error on my OSX machine:
>
> >>>> undefinedmethod`configuration' forRails:Module
> >>>> $RAILS_ROOT/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/
> >>>> configuration.rb:161:in `load_models'
>
> >>>> I am not familiar enough with the code to poke around in the plugin.
>
> >>> --~--~---------~--~----~------------~-------~--~----~
> >>> 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 
> >>> athttp://groups.google.com/group/thinking-sphinx?hl=en
> >>> -~----------~----~----~----~------~----~------~--~---
>
> > --
> > 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 
> > athttp://groups.google.com/group/thinking-sphinx?hl=en.

-- 
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=en.

Reply via email to