cousine / mebla

An elasticsearch wrapper for mongoid odm based on slingshot
MIT License
60 stars 10 forks source link

NoMethodError (undefined method `arity' for nil:NilClass) #3

Closed djrobby closed 13 years ago

djrobby commented 13 years ago

I get this error originating from line 20 of search.rb in slingshot library. any ideas?

Place.search "name: thai" NoMethodError: undefined method arity' for nil:NilClass @from /home/robby/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:48:inmethod_missing' from /home/robby/.rvm/gems/ruby-1.9.2-p180/gems/slingshot-rb-0.0.10/lib/slingshot/search.rb:20:in query' from /home/robby/.rvm/gems/ruby-1.9.2-p180/bundler/gems/mebla-412535653b59/lib/mebla/search.rb:107:inquery' from /home/robby/.rvm/gems/ruby-1.9.2-p180/bundler/gems/mebla-412535653b59/lib/mebla/search.rb:60:in initialize' from /home/robby/.rvm/gems/ruby-1.9.2-p180/bundler/gems/mebla-412535653b59/lib/mebla.rb:115:innew' from /home/robby/.rvm/gems/ruby-1.9.2-p180/bundler/gems/mebla-412535653b59/lib/mebla.rb:115:in search' from /home/robby/.rvm/gems/ruby-1.9.2-p180/bundler/gems/mebla-412535653b59/lib/mebla/mongoid/mebla.rb:192:insearch' from (irb):2 from /home/robby/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/commands/console.rb:44:in start' from /home/robby/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/commands/console.rb:8:instart' from /home/robby/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/commands.rb:23:in <top (required)>' from script/rails:6:inrequire' from script/rails:6:in `

'

cousine commented 13 years ago

hi djrobby,

I think its a compatibility issue with slingshot 0.10, try downgrading slingshot to 0.8 for now, and I will get to it and set the versions straight in the Gemfile

ghost commented 13 years ago

I ran into this problem last week - downgrading to 0.8 was the answer