Introduction
Rails is a web application development framework written in Ruby programming language. Designed to simplify web applications by making guesses about what every developer needs to get started. Allows you to write small codes while achieving more than most other languages and frameworks. Rails developers are knowledgeable and report that it makes web application development a lot more fun.
The command-line tool RVM (Ruby Version Manager) provides you with a solid development environment. RVM will let you manage and work with multiple Ruby environments and allow you to switch between them. The project repository is located in a git repository.

Getting Started with Rails
macOS already included Ruby. You can enter this command at a Terminal prompt to check Ruby version and see result like:
Step:1
ruby -v
RVM or Ruby Version Manager is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
Step:2
rvm --version
Step:3
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Step:4
Install Brew
Brew is a package manager for macOS. It can install the stuff you need that Apple does not have. Type the following code at a Terminal prompt to install brew.
brew install gnupg gnupg2
After installing the brew, open terminal and run the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Now go back to step-3:
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
After that run the following commands on the terminal:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import
Now use gpg2:
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
If above one step did not work then below alias worked:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB