On 11 Feb 2010, at 12:48, Rabia Akhtar wrote:
I am getting
A NoMethodError occurred in main#search:
undefined method `sphinx_facets' for nil:NilClass
[RAILS_ROOT]/vendor/plugins/
thinking-sphinx/lib/thinking_sphinx/facet_search.rb:131:in
`facet_from_object'
Its occur in special scenerio...
Can any body tell me when and how to resolve this exception??
1. Make sure you don't get nil values
2. If nil values can't be avoided, check for nil and don't call
sphinx_facets on it.
Best regards
Peter De Berdt
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" 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/rubyonrails-talk?hl=en.