Set Up Rails Environment For Static Page

Rules

Install Ruby

$ ruby --version

Install Homebrew

$ brew --version
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install RVM (Ruby version Manager)

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

Install Yarn

$ yarn --version
$ brew install yarn

Install Rails

$ 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 http://guides.rubyonrails.org/routing.html  root 'home#index'end
$ rails server

localhost:3000

Challenge

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
Abe

Abe

I write about holistic growth

More from Medium

Ghostd: Discovering Backend Development with a Dating App for Dead People

Creating a React app with Rails API backend

WEB COMPONENTS

More, and More Colorful, Web Colors