Hi Mike

Which versions of Thinking Sphinx and ActiveRecord are you using?

-- 
Pat

On 08/09/2011, at 7:56 AM, mikeee wrote:

> I'm pretty sure after doing some more digging that the issue is that
> RAILS_ROOT Is not defined anywhere in a Sinatra application.    I just
> tried putting a RAILS_ROOT constant into my Rakefile but that isn't
> helping.
> 
> Let me know if anyone has any experience using TS and Sinatra.
> Thanks!
> 
> 
> On Sep 7, 8:05 am, mikeee <[email protected]> wrote:
>> Hi -
>> 
>> I found a gist on github regarding how to get Thinking Sphinx to work
>> in a sinatra app using ActiveRecord and that seems like it will work
>> but I'm having trouble setting up the application in order to allow me
>> to run the rake tasks necessary to generate the required configuration
>> files and the index.
>> 
>> What appears to be happening when I try and run these tasks is that it
>> seems like the rake task is trying to use a path of "/" for all the
>> tasks.  Here's the output I get when running ts:config
>> 
>> macbook:autocomplete mengelhart$ rake ts:config
>> Generating Configuration to /config/development.sphinx.conf
>> rake aborted!
>> No such file or directory - /config/development.sphinx.conf
>> 
>> Tasks: TOP => ts:config => thinking_sphinx:configure
>> (See full trace by running task with --trace)
>> 
>> Note the /config/  path that it's trying to use.    Maybe I'm not
>> understanding the output correctly though.
>> 
>> I have my model in app/models in my sinatra application directory as
>> well and i can hit the database and do straight up AR calls in the
>> sinatra  handlers I just can't seem to get the TS setup configured
>> appropriately so I can index the model.
>> 
>> Thanks for any help
> 
> -- 
> 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.
> 

-- 
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