Set Up Rails Environment For Static Page


For this guide, please make sure to type each terminal command exactly as you see it.

Install Ruby

$ ruby --version

Install Homebrew

Homebrew is a package manager that allows you to download and clone software from github. You will need it to download software that will allow you to create your Ruby on Rails environment.

$ brew --version
$ /usr/bin/ruby -e "$(curl -fsSL"

Install RVM (Ruby version Manager)

Rvm is a ruby manager. It allows you to use install and use different versions of ruby. You can check if you have it by checking the version,

$ rvm --version
$ \curl -sSL | bash$ source ~/.bash_profile $ rvm install ruby 2.6.4$ rvm use 2.6.4

Install Yarn

Yarn is a tool that allows you to have easy access to any packages you download for your apps. It caches your packages and makes accessing packages much faster.

$ yarn --version
$ brew install yarn

Install Rails

Rails is a framework that allows you access to many features when building a web application. It gives you access to a server, database, etc. Install it below.

$ sudo gem install rails
$ cd Desktop$ rails new sample_app$ cd sample_app
$ rails generate controller Home index
Rails.application.routes.draw do# For details on the DSL available within this file, see  root 'home#index'end
$ rails server


You should have your website ready to go. It should be blank white and you can start by adding your html to your index.html.erb file.


Add an image and center the content of the page, like so:

body {

text-align: center;



I write about holistic growth

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


I write about holistic growth