Joyful Rails (updated)
When it comes to setting up Rails, I came across this post, written by Talaria Software. It guides you on what to do after installing Rails for the first time, from linters to setting up a proper database for production.
However, that post was written 4 years ago. The framework is now on its way to version 8.
I believe the original "Joyful Rails" guide is outdated. For Rails 8, I think there's less need to set up many things. The framework comes more fully-featured now.
Here's my version of Joyful Rails:
Ruby Version Management
DHH is writing Omakube, an all-in-one script to set up the best Linux experience for first-time installation. It includes Ruby. When I tried it, I initially thought it used RVM as the Ruby version manager.
I was wrong. Omakube uses mise as the Ruby version manager. Mise is essentially like RVM, but not only for Ruby.
The Rails New Command
To install Rails 8:
gem install rails --version='8.0.0.beta1'
By default, Rails 8 uses SQLite. But I prefer PostgreSQL:
rails new app --database=postgresql
Switch to RSpec
I prefer RSpec rather than Minitest. I agree with the original Joyful Rails guide on switching to RSpec.