我在我的Gemfile中有这个:
gem "rails", github: "rails/rails"
但是当我执行bundle update
时,它没有获取最新的提交
默认情况下,github:
命令选择master
分支,但现在官方Ruby On Rails存储库使用main
所以你应该这样写:
gem "rails", github: "rails/rails", branch: "main"