Most Rails rescues I am asked for trace back to the same few habits that are missing, not to bad developers. The first is small, reviewed pull requests: one concern per PR, a description that says what and why, and CI that runs RSpec, Brakeman, bundler-audit and RuboCop on every branch. The second is safe releases: feature flags around risky changes, Solid Queue jobs that are idempotent and retriable, and migrations that are written to run on a live database in two steps (add the column now, enforce it after the backfill).
The third is boring deploys: Docker images built in CI, deployed with Kamal behind kamal-proxy, health checks that actually reflect the app, and rollback that is one command rather than a plan. When I join an existing codebase, this is the baseline I install first, because every other improvement is easier when shipping is routine and reversible.