Rails 8 requires a minimum of Ruby 3.2.0, not Ruby 3.1 as some sources incorrectly claim. The confusion stems from a 2023 PR that bumped the minimum to 3.1 for Rails 7.2, not Rails 8. The recommended version is Ruby 3.3 or later, with Ruby 3.4 being the first choice for new applications. A compatibility table covers Rails 6.0 through 8.1. For upgrades, the advised order is to upgrade Ruby first, run the test suite in staging, then upgrade Rails — doing both simultaneously is the leading cause of upgrade stalls. Ruby 3.2 reaches end-of-life around March 2026, making 3.3 or 3.4 the safer production choice today.
Table of contents
Where the Minimum Comes FromWhy Ruby 3.1 Keeps Getting CitedWhere the Recommended Version Comes FromWhat You Should Actually InstallThe Ruby Release Cadence and What It MeansThe Rails-Ruby Compatibility TablePractical RecommendationSort: