安装使用 ruby
OS: windows10
1. 下载 Rails Installer
https://rubyinstaller.org/
2. 配置系统环境变量
$ ruby -v
3. 安装 rails
$ gem install rails
$ rails --version
4. 创建 blog 应用
$ rails new blog
$ cd blog
5. 安装 yarn
$ npm install --global yarn
6.Since Rails 6, Webpacker is the default JavaScript compiler
$ rails webpacker:install
$ yarn install --check-files
$ rails s
7. 访问
http://localhost:3000/
8. 参考
https://ruby-china.github.io/rails-guides/getting_started.html
https://runebook.dev/zh-CN/docs/rails/guides/getting_started
https://stackoverflow.com/questions/57891751/webpacker-configuration-file-not-found-rails-6-0-0
https://progressbar.tw/posts/122