Hi Oscar If you're happy with that setting being true, then I guess there's no problems... still, things should work either way. What version of Thinking Sphinx are you using?
-- Pat On 21/04/2010, at 7:02 PM, Oscar Del Ben wrote: > Actually, if I set config.cache_classes = true in development.rb, > everything works fine. > > On Apr 19, 5:45 pm, Oscar Del Ben <[email protected]> wrote: >> Hi, I'm having troubles doing a search on multiple models with TS. If >> I use this code in one of my controllers: >> >> ThinkingSphinx.search("*a*") >> >> I get the undefined method `constantize' for nil:NilClass error. >> >> The nice thing is that it works fine in the console (always in >> development mode), but not in the controller. These are my indexes: >> >> define_index do >> set_property :delta => true >> indexes login, :sortable => true >> indexes province >> indexes country >> indexes state >> where "state in ('active', 'suspended')" >> end >> >> define_index do >> set_property :delta => true >> indexes :updated_at, :sortable => true >> indexes :body_html >> end >> >> -- >> 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. > -- 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.
