A new guide has been published: How to Install Ruby on Rails with PostgreSQL on Rocky Linux 8.4
Howtoforge published a tutorial about installing Ruby on Rails with PostgreSQL on Rocky Linux 8.4.
Read more @ Linux Compatible