gem install rails -v 6.1.5.1
# Use rvm to install Ruby # https://rvm.io/ # then in the console use this command # gem install rails # Now enjoy using rails