This is a basic Rails project setup on a Mac that helps me get up to speed when building a new app.
It is by no means a guide, reference or best practice.
rails new project_name -d postgresql
cd project_name
cp config/database.yml config/example.database.yml