Install
Install Ruby on Rails using RubyGems.
gem install rails
Rebuild the rbenv
shim binaries.
rbenv rehash
Verify the Installation
To verify that you have correctly installed Ruby on Rails, execute the following command. It should display the version number.
rails -v