elastic/elasticsearch-rails

Error while generating the simple app in README

kerolloz opened this issue · 2 comments

running the following command gives an error

rails new searchapp --skip --skip-bundle --template https://raw.github.com/elasticsearch/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/01-basic.rb

image

Bundler could not find compatible versions for gem "elasticsearch":
  In Gemfile:
    elasticsearch

    elasticsearch-model was resolved to 7.1.0, which depends on
      elasticsearch (~> 7)

$ rails --version
Rails 6.0.3.5

Hi, I saw the same situation and just tried to create the pull request.
(I withdrew it for some reason but I think this was effective. Hope this would be any help.)

@akiko-pusu thank you very much for the the fix! I couldn't merge your PR since it was closed, but I've added the fix now.