Destroying object causes NoMethodError

2 views
Skip to first unread message

Tim

unread,
Sep 24, 2009, 12:55:20 AM9/24/09
to Thinking Sphinx
Couldn't find any mention of this, but I'm getting a NoMethodError
(nil object) when calling destroy on a TS enabled object. The last 4
calls on TS are:

active_record.rb:283:in `sphinx_document_id'
active_record.rb:239:in `in_index?'
active_record.rb:243:in `in_core_index?'
active_record.rb:264:in `toggle_deleted

I'm also using the 'set_sphinx_primary_key' feature.

Everything works as expected when the daemon is not running however.

Any ideas?

Cheers.

Pat Allan

unread,
Sep 24, 2009, 6:33:54 AM9/24/09
to thinkin...@googlegroups.com
Hi Tim

What's the full stack trace? Would be useful to see exactly how the
error is reached, and what it is. Also, which versions of TS and Rails
are you using?

--
Pat

Tim

unread,
Sep 24, 2009, 11:20:11 PM9/24/09
to Thinking Sphinx
Ummm I must be going crazy, I can't reproduce it now.

I'm running Rails 2.3.2, Sphinx 0.9.8 and TS 1.2.11

Pat Allan

unread,
Sep 25, 2009, 3:44:17 AM9/25/09
to thinkin...@googlegroups.com
Well, I've created a ticket to add a scenario to the cucumber setup in
TS to check it anyway:
http://github.com/freelancing-god/thinking-sphinx/issues/#issue/41

If you have it happen again, feel free to add more details there :)

--
Pat
Reply all
Reply to author
Forward
0 new messages