运行 Rails 服务器时,asdf 消息“没有为 command rails 设置版本”

the*_*eus 11 ruby ruby-on-rails-3 asdf-vm

rails s/.ruby-version和中更新了我的 Ruby 版本后,我试图在我的 Rails 3.2.13 应用程序中运行我的 Rails 服务器 ( ) /.tools-versions,但收到以下消息:

asdf: No version set for command rails

you might want to add one of the following in your .tool-versions file:

ruby 2.2.4
Run Code Online (Sandbox Code Playgroud)

但是,我已将两个版本文件中的 ruby​​ 更新为 2.3.0,并在两者中都有体现。当我输入asdf which rubyruby 版本也是 2.3.0。

我想帮助理解为什么rails s会提示这个 asdf 消息,以及我在如何修复它以便我可以运行 rails 服务器方面缺少什么。

Jim*_*mmy 14

尝试这个:

asdf reshim ruby
Run Code Online (Sandbox Code Playgroud)

然后rails s再次运行