Rails Cheatsheet
Fri 19/03/2021
Rails
Creating a new project for the first time
Select your version of Ruby using either rvm
or rbenv
. I'll be using Ruby v3.0.0
.
Select the compatible version of Node usingnvm
At the time of writing, this is v14.6.0.
Create a new project with rails new [name] -T -d=postgresql
Issues with creating new projust
Change the Gemfile pg version to the lastest here: https://rubygems.org/gems/pg/versions At the time of writing, it was pg v1.2.3
Run bundle binstubs bundler
Run rails webpacker:install