Rails and Ruby versions

What are the latest “stable” recommended versions to use? I’ve looked for an “official” statement in Ruby on Rails Guides or elsewhere and can’t nail it down. Would you recommend Ruby 3.0.0 or 2.7.2? And Rails 6.1.0 or 6.1.1 or different combinations?

1 Like

Apparently even if you can make Ruby 3 work it may slow down Rails at this point, so it’s not worth it. Stay on the latest 2.x.

ruby 2.7.x & rails 6.0.x for me There might incompatibility/performance issue in 3.0.x for rails And I don’t have time to check rails 6.1 yet

The two projects are managed very differently. Here’s my best take:

Rails The latest version is good to go right away. Large installations like Basecamp and GitHub have been on 6.1 for a while now. Personally, I don’t jump on the x.y.0 though — I wait for at least one minor version to accrue.

Ruby The latest version often has show-stopping bugs or security issues. So it’s necessary to check posts on e.g. Reddit. Sometimes these problems aren’t posted quickly by the project maintainers and it’s necessary to read other sources. So personally, I stay a version behind. E.g., I’m on Ruby 2.7.2. I probably won’t use 3 until 3.1 or 3.2 is out.

2 Likes

Working on a project and upgrading it continuously now its on 6.1.1 rails and 2.7.2 ruby. I tried to switch to ruby 3.0.0 but I had some errors with few gems. I didnt check deeper whats the issue. But can confirm that 6.1.1 rails and 2.7.2 ruby work fine for now.

4 Likes