#113 new
rux

searchlogic 2.2.3 work with rails 2.2.2

Reported by rux | August 27th, 2009 @ 10:50 PM

Hi Ben!
Please take a look at this error, thx!

Loading development environment (Rails 2.2.2)

Account.searchlogic({:email_like =>"044"}).all NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]

    from /Users/rux/RailsProjects/vacman_e2/vendor/rails/activerecord/lib/active_record/named_scope.rb:114:in `initialize'
    from /Users/rux/RailsProjects/vacman_e2/vendor/rails/activerecord/lib/active_record/named_scope.rb:92:in `new'
    from /Users/rux/RailsProjects/vacman_e2/vendor/rails/activerecord/lib/active_record/named_scope.rb:92:in `named_scope'
    from /Users/rux/RailsProjects/vacman_e2/vendor/rails/activerecord/lib/active_record/named_scope.rb:96:in `call'
    from /Users/rux/RailsProjects/vacman_e2/vendor/rails/activerecord/lib/active_record/named_scope.rb:96:in `scoped'
    from /usr/local/lib/ruby/gems/1.8/gems/searchlogic-2.2.2/lib/searchlogic/search.rb:98:in `method_missing'
    from (irb):1

But the method Account.email_like("044) works just fine.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Provides common named scopes and object based searching.

People watching this ticket

Pages