こんにちは。Takitaです。
gem update railsをすると安定バージョンまでしかupdateできないので、メモがてらRails 6.0.0.rc1でrails newするまでをメモります。
$vi Gemfile
# Gemfile
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.0.rc1'
$ bundle install --path vendor/bundle
$ bundle exec rails -v # Rails 6.0.0.rc1
$ bundle exec rails new . -d mysql --skip-bundle # dbをmysqlにして、bundle installをスキップする
rails s
するとエラーになるので以下のコマンドが追加で必要でした。
$ bundle exec rails webpacker:install
これでYay! You're on Rails!できます。
はじめてのRails6系 https://t.co/K9JeqXKPqI pic.twitter.com/yKLvaNZWQB
— Yusuke Takita (@3chhe) 2019年5月26日