Skip to content

Instantly share code, notes, and snippets.

@kevgathuku
Created May 3, 2026 20:20
Show Gist options
  • Select an option

  • Save kevgathuku/7e4d1340aec2bccd208df101807d2972 to your computer and use it in GitHub Desktop.

Select an option

Save kevgathuku/7e4d1340aec2bccd208df101807d2972 to your computer and use it in GitHub Desktop.
Managing Multiple Rails Versions in Development

You can have multiple Rails versions installed at the same time.

To install the rails version you need:

gem install rails --version=5.2.8

How to specify the rails version to use

rails _5.2.8_ new old_school_rails

And inside the project, you will have the correct rails version

cd old_school_rails
bundle exec rails --version
Rails 5.2.8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment