Ruby
$ brew install rbenv $ rbenv install 3.1.2 $ rbenv local 3.1.2 $ ruby -v
Rails
$ gem install rails -v 7.0.3.1 $ rails -v
esbuild, bootstrap
$ rails new . --skip-keeps -j esbuild --css bootstrap
+ puts "\n== Compiling assets ==" + system! 'bin/rails assets:precompile'
ridgepole
https://qiita.com/wonder_boooy/items/f1f46012bd656519ad73
gem 'ridgepole'
$ touch Schemafile
namespace :ridgepole do desc 'Apply schema to database' task apply: :environment do config_file = 'config/database.yml' schema_file = 'Schemafile' command = "bundle exec ridgepole --apply --config #{config_file} --env #{Rails.env} --file #{schema_file}" puts '=== run ridgepole... ===' puts "[Running] #{command}" system command end end
+ system! 'bin/rails ridgepole:apply'
slim
https://qiita.com/ngron/items/c03e68642c2ab77e7283
gem 'slim' gem 'html2slim'
$ bundle exec erb2slim app/views app/views
rubocop
https://qiita.com/yumikokh/items/98be01df144c41d60e1e
gem 'rubocop' gem 'rubocop-rails'