Setting up enviroment for Ruby on Rails

2023-09-14

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

  1. 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
  1. Install Bundler:
gem install bundler
  1. Install Rails
   gem install bundler

   rails --version
  1. 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.