asdf-ruby: `bundle exec rails` not working

Not sure what’s going on.

→ cat .tool-versions
ruby 2.3.0

→  bundle --version
Bundler version 1.11.2

→  rails --version
bundle exec Rails 4.2.5

→  bundle exec rails --version
No such command in 2.3.0 of ruby

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

For the record: I had a similar issue for another reason: I previously used rbenv, but after changing to asdf bundle exec rspec gave the same error message as above.

Turned out I had some rbenv leftovers in ~/.gem/. Deleting that folder and reinstalling the gems fixed my issue.

FWIW, I had this same problem. asdf reshim ruby or the version-specific didn’t help. I had to rehash at the zsh level then all was good.

before I needed to use: bundle exec rspec spec but after I do a: asdf reshim ruby and now I just put: rspec and work’s!