views:

25

answers:

2

I am trying to use this forked version of the searchlogic gem. In my gemfile, I have

gem "searchlogic", :git => "http://github.com/railsdog/searchlogic.git"

when I do bundle install, I get this error:

Could not find gem 'searchlogic (>= 0, runtime)' in http://github.com/railsdog/searchlogic.git (at master).
Source does not contain any versions of 'searchlogic (>= 0, runtime)'

What is causing this error? Thanks for reading.

A: 

It doesn't look like that gem has been upgraded for Rails3. From the issues listed in Github, it seems that searchlogic is heavily dependent on ActiveRecord2 and may not be easily upgraded for Rails 3. It may be worth looking into an alternative.

http://stackoverflow.com/questions/3655818/will-searchlogic-work-with-rails-3

http://github.com/binarylogic/searchlogic/issues/issue/65

Bryan Marble
it's not the question.
shingara
You're right :-) I removed at least one incorrect portion of my response, but I'll leave the remainder as I'm guessing there still might be a rails 3 compatibility issue, even if it is tangential to the original question.
Bryan Marble
A: 

It's because your fork not define searchlogic gem by rd_searchlogic gem. So use in your Gemfile :

gem "rd_searchlogic", 
  :git => "rd_searchlogic.gemspec", 
  :require => 'searchlogic"
shingara