【 VSCode側 】
【 GitHub側 】
【 HackMD 】
ノートの読んだところにPRのURLを追記しておく。
2-2-1 書籍のデータを作る。
リスト2.4 app/models/book.rbにwritten_aboutスコープを追加する
リスト2.5 db/migrate/20200514152514_add_publisher_id_to_books.rb
リスト2.6
リスト2.7
リスト2.8
リスト2.10のあとのrails cのコード
(データを作る部分だけ抜粋)
2-2-3
【 GitHub側 】
Github上のNewアイコン
をクリックして空のリポジトリ作成。
リポジトリ名、Descriptionを記入。
(例:Perfect_Ruby_on_Rails_Ch2)、(例:パーフェクトRuby on Rails 輪読会 2023 2章用)
【 VSCode側 】
.gitignore
ファイルを作成する
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
.bundle
# Ignore the default SQLite database.
/*/db/*.sqlite3
/*/db/*.sqlite3-journal
/*/db/*.sqlite3-*
# Ignore all logfiles and tempfiles.
/*/log/*
/*/tmp/*
!/*/log/.keep
!/*/tmp/.keep
# Ignore pidfiles, but keep the directory.
/*/tmp/pids/*
!/*/tmp/pids/
!/*/tmp/pids/.keep
# Ignore uploaded files in development.
/*/storage/*
!/*/storage/.keep
/*/public/assets
.byebug_history
# Ignore master key for decrypting credentials and more.
/*/config/master.key
/*/public/packs
/*/public/packs-test
node_modules
yarn-error.log
yarn-debug.log*
.yarn-integrity
編集していく(ローカルでrails new してbook_adminを作成するなど)。
(rails new
する手順はこちら→環境構築 2023年版 - HackMD)
【 GitHub側 】
ヘッダーメニューからSettingsを選択。
左側のメニューでCollaboratorsを選択。
Add peopleボタンから更新してくれる方を招待していく