Как проверить версию Ruby
// Command line:
$ ruby -v
// Within irb type "RUBY_VERSION"
# => "2.4.1"
// If using RVM:
$ rvm current
# => ruby-2.4.1
CodeBaron
// Command line:
$ ruby -v
// Within irb type "RUBY_VERSION"
# => "2.4.1"
// If using RVM:
$ rvm current
# => ruby-2.4.1
# install specific rails version https://rubygems.org/gems/rails/versions
gem install rails -v 5.2.4.1
sudo gem install sqlite3-ruby
gem install rails -v 5.2.4.1