Supported Ruby/Rails versions
To work with the Ruby programming language, you need to download and install the required Ruby distribution. IntelliJ IDEA automatically detects interpreters installed on a local machine and maintained by version managers. The following interpreters are supported:
For Rails projects, the following framework versions are supported:
Rails 3.2.x requires Ruby 1.8.7 or later.
Rails 4 requires Ruby 1.9.x or later.
Rails 5 requires Ruby 2.2.2 or later.
Rails 6 requires Ruby 2.5.0 or later.