binarylogic / searchlogic

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

rails 3 support #65

Open mixtli opened 14 years ago

mixtli commented 14 years ago

After upgrading to rails 3, I get the following when I start the server:

/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta/lib/active_support/core_ext/module/aliasing.rb:31:in alias_method': undefined methodmerge_joins' for class Class' (NameError) from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta/lib/active_support/core_ext/module/aliasing.rb:31:inalias_method_chain' from /Library/Ruby/Gems/1.8/gems/searchlogic-2.4.10/lib/searchlogic/active_record/consistency.rb:8:in included' from /Library/Ruby/Gems/1.8/gems/searchlogic-2.4.10/lib/searchlogic/active_record/consistency.rb:7:inclass_eval' from /Library/Ruby/Gems/1.8/gems/searchlogic-2.4.10/lib/searchlogic/active_record/consistency.rb:7:in included' from /Library/Ruby/Gems/1.8/gems/searchlogic-2.4.10/lib/searchlogic.rb:18:ininclude' from /Library/Ruby/Gems/1.8/gems/searchlogic-2.4.10/lib/searchlogic.rb:18

wtn commented 14 years ago

duplicate, see pacoguzman's ticket

sjain commented 14 years ago

same happens with rails 2.3.8 and bundler

yorzi commented 14 years ago

I still can use searchlogic in rails 3. is there anyone using searchlogic in rials successfully?

bowsersenior commented 14 years ago

The bad news: searchlogic has a lot of stuff that's based on the ActiveRecord 2, so it might be hard to upgrade it to work with ActiveRecord 3 (and Rails 3).

The good news: meta_search works with rails 3 and uses almost the same syntax as searchlogic : http://github.com/ernie/meta_search

I switched over a large app from searchlogic to metasearch just by renaming the searchlogic order method to sort_link (the metasearch equivalent)

runlevel5 commented 13 years ago

spree project has ported searchlogic to rails3, called 'rd_searchlogic'

metasoarous commented 13 years ago

I think I'll use rd_searchlogic for now, but are there plans for making the gem Rails 3 compatible here? An eta?

phlegx commented 13 years ago

It is working now for rail 3.0.3 or not?

Bye

singhkishan commented 10 years ago

rd and searchlogic both are not compatible for rails 3 better to go for manual query