I\'m doing the Ruby on Rails Tutorial. For the first three chapters it uses SQLite, but later it suggests using PostgreSQL on development for easier Heroku deploys. After ed
Indentation was the culprit for me.
Rails it seems has a strict way of reading db type (development or production) and the db settings (adapter, host, username, etc etc) from the yml file.
But of course the ActiveRecord error msg was overkill.. it made it look like I was missing a gem
You did not define the database for the test environment. Your database.yml
file should look like:
development:
adapter: postgresql
host: localhost
username: nekkoru
password: derpderp
database: development
encoding: UTF8
test:
adapter: postgresql
host: localhost
username: nekkoru
password: derpderp
database: test # or whatever the name is
encoding: UTF8