Open mrcsparker opened 14 years ago
This doesn't work. It just gives the error:
A NoMethodError occurred in purchase_orders#index:
You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.join /opt/ruby1.9.1/lib/ruby/gems/1.9.1/gems/searchlogic-2.4.12/lib/searchlogic/named_scopes/or_conditions.rb:14:in `named_scope_options'
I'm running into the same issue. Did you ever find a fix? were using Rails 2.3.4, ruby 1.8.7, searchlogic 2.4.19. The problem is intermittent and goes away after restarting our apache/passenger daemon, only to return a few hours later. I can't seem to reproduce using mongrel.
This is still very much an issue with rails:
I have been getting the following error:
Running:
I put in a possible workaround, which I have not seen any errors from. In file lib/searchlogic/active_record/named_scope_tools.rb I updated to code to:
Line 18 checks that the scopes[key] is not nil. I will let you know if this works long-term.