Ruby on Rails 8 cheatsheet
Ruby on Rails 8: Getting started
11 common Ruby on Rails 8 tasks.
Create an app that uses PostgreSQL
Choose a database other than the default SQLite.
rails new myapp --database=postgresql
Create an API-only app
Skip the view layer and middleware that browser apps need.
rails new myapi --api
Open the Rails console
Start an IRB session with the app loaded. Handy for trying out models.
bin/rails console
Show app and environment details
Print the Ruby, Rails and database versions and the environment.
bin/rails about