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)
For the record: I had a similar issue for another reason: I previously used rbenv, but after changing to asdf
bundle exec rspecgave 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 rubyor the version-specific didn’t help. I had torehashat thezshlevel then all was good.before I needed to use:
bundle exec rspec specbut after I do a:asdf reshim rubyand now I just put:rspecand work’s!