cd ~/projects
git clone -b volume03 git://github.com/.../aaa.git pp
git -b :volume03ブランチ を指定
git 指定なし :masterブランチ を指定
pp :ディレクトリ名
rails db:setup
データベース初期化
rails db:seed シードファイルの実行
seed.rb
coding: utf-8
#articlesテーブルにデータ投入
Article.create(
:url => 'Script',
:title => 'Script', category => 'Script',
:published => 'Script', :access => 'Script', :closed 'Script')
rails db:setup データベースの作成、スキーマ構築、初期データ投入
rails s
http://localhost:3000