Search code examples
ruby-on-railsgithubrubygemsgemfile

gem rails from Github not updating


I have this in my Gemfile :

gem "rails", github: "rails/rails"

But when I do bundle update, it is not fetching the latest commit


Solution

  • By default, the github: command is picking master branch, but now the official Ruby On Rails repository uses main

    So you should write this :

    gem "rails", github: "rails/rails", branch: "main"