RubyoffRails/Episode3 — pull request #2 by telemachus (2012-05-07 12:42:18+00:00)
Title: Hw ep3

So, this was weird. I kept having various little Postgresql problems right up to the end.

+ Unless I added `host: 'localhost'` to my `config/database.yml` file, I got permission problems.
+ Even after I added that line, database creation via ActiveRecord always failed. In the end, I manually created the `books` database using Postgresql's command-line tools (`createdb`).

Then things worked. The `config/database.yml` file I used follows:

adapter: 'postgresql'
host: 'localhost'
database: 'books'
username: 'telemachus'
encoding: 'utf8'
pool: 5

If you replace the username there, you *should* be able to run `ruby watchman.rb` and see my mini book database. Please let me know if you have any trouble.