Ruby on Rails is a powerful framework that streamlines web application development. It uses the Ruby programming language and provides a wealth of tools and conventions to help people build dynamic and user-friendly web applications quickly and efficiently.
Setting Up Rails environment on macOS using Terminal
Install Ruby using Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Once Homebrew is installed, use the following command to install Ruby:
brew install ruby
Check if Ruby is installed correctly by running:
ruby -v
- Install Bundler:
gem install bundler
- Install Rails
gem install bundler
rails --version
- Create a new project named blog
rails new blog
In this way, we can see a Rails application called Blog was created, we can use those project files inside to program.