Scaffold problem with PostgreSQL

We are having a problem scaffolding with PostgreSQL. We are following the depot tutorial from the AWDWR and it gives problems:

$ ruby script/generate scaffold Product Admin       exists app/controllers/       exists app/helpers/       exists app/views/admin       exists test/functional/   dependency model       exists app/models/       exists test/unit/       exists test/fixtures/    identical app/models/product.rb    identical test/unit/product_test.rb    identical test/fixtures/products.yml Couldn't find 'product' generator

Why is it unable to find the product generator? That's not what the Product parameter is meant to be. The table has name 'products' (all lower case). Is there any way we can debug this?

Regards, Bart

Bart Braem wrote:

Why is it unable to find the product generator? That's not what the Product parameter is meant to be. The table has name 'products' (all lower case). Is there any way we can debug this?

Eventually we found the answer: the postgres gem was not installed properly. Starting the console and doing Product.find(0) gave an error indicating the absence of the gem in the path... Most probably too much exceptions are caught in the scaffold generator, should I file a bug for it?

Bart