$ ruby -v
$ rvm get stable
$ rvm install ruby-3.0.2
$ rails -v
$ gem list rails --remote -e
$ gem update rails
- See all Rails versions: https://rubygems.org/gems/rails/versions
- Install a specific Rails version:
gem install rails -v 5.2.5
$ rails new my-app --skip-bundle -T --database=postgresql
# Use haml instead of erb
gem 'haml-rails'
group :development, :test do
# Use rspec instead of minitest
gem 'rspec-rails'
end
ruby file: ".ruby-version"
$ bundle install
$ rails haml:erb2haml
$ rails g rspec:install
$ rails webpacker:install
$ git add .
$ git commit -m "Initial commit"
$ rails db:create
$ rails s
$ rails new my-app
$ rails new my-app -T
# gem 'rspec-rails'
$ bundle install
$ rails g rspec:install
$ rails new my-app --database=postgresql
https://gist.github.com/randallreedjr/bfe8e752fb992dba16b5318dbea1e443
# Rails 5
$ rails new my-app --skip-active-record
# Rails 4
$ rails new my-app --skip-activerecord
$ rails new my-app --api