-
For legacy projects, check your installed versions of ruby against this list.
-
If you have a version that will work with the Rails version you need, then proceed to 4, if not go to 3, install an compatible version using rbenv.
-
After installing a compatible version, switch your local ruby version for your project folder to the relevant one:
rbenv versions
rbenv local 2.4.0
rbenv versions