===============================================
===============================================
$ xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
$ brew install rbenv
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
$ source ~/.bash_profile
$ rbenv install 2.6.3
$ rbenv global 2.6.3
$ gem install rails --no-document
$ brew install yarn
$ rails -v
if rails 6.x.x.
$ rails new myapp
$ cd myapp
$ rails server
and go to browser http://localhost:3000
$ rails new railsgirls
$ cd railsgirls
$ rails generate scaffold idea name:string description:text picture:string
$ rails db:migrate
$ rails server
and go to browser http://localhost:3000/ideas
photo lib add to Gemfile
$ gem 'carrierwave'
$ bundle
rails generate uploader Picture
$ rails generate controller pages info