binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.4k stars 133 forks source link

undefined method `merge_joins #141

Open danielavdh opened 13 years ago

danielavdh commented 13 years ago

hi

after installing searchlogic 2.4.27 i get this error when starting up rails:

activesupport-3.0.3/lib/active_support/core_ext/module/aliasing.rb:31:in alias_method': undefined methodmerge_joins' for class `Class' (NameError)

I have tried with rails 3.0.3 and 3.0.4 and also with ruby 1.8.7.p174 and 1.9.2 p136

thanks,

daniela

erskingardner commented 13 years ago

I'm having the same trouble with searchlogic 2.4.28.

cobyism commented 13 years ago

Looks like Searchlogic up to 2.5.6 requires activerecord ~> 2.3.11, so I don't think current versions of Searchlogic will work with Rails 3+. Try https://github.com/ernie/meta_search if you're looking for something with similar functionality that works with more recent versions of Rails.

red-quark commented 13 years ago

cobychapple, are you suggesting that searchlogic will not be fixed and that I should move to meta_search?

anyone have any idea of how long it will be until this is fixed?

cobyism commented 13 years ago

I have no idea whether Searchlogic will be updated or not, as I'm not involved with the project and don't have time to contribute to it myself. I was merely making an observation and suggesting an alternative I've used before. If it makes sense for your purposes to move to meta_search, then go for it.

NullVoxPopuli commented 12 years ago

i'm getting this error with rails 2.3.8 =(

medvedev84 commented 12 years ago

I have the same error with rails 3.1

medvedev84 commented 12 years ago

I have found cobychapple was right - there is no any support for Searchlogic in Rails3.1, furthermore meta_search is quite old and you should you Squeel and Runsack for such cases

hrdwdmrbl commented 12 years ago

I was trying this for the first time, then had this error, then found this thread, then left. Trying meta_search/meta_where and squeel.