Error: Before updating scaffolding from new DB schema, try

Hi, I’m going through the Depot tutorial in the book “Agile Web
Development with Rails” and I can’t even get past the very first step.
I’m getting the following error:

“Before updating scaffolding from new DB schema, try creating a table
for your model (Product)”

when I try to run "ruby script/generate scaffold Product Admin.

I have a table called “products” created in MySQL database
depot_development and so it’s not a name mismatch problem. I google’d a
around and found that people who ran into this problem eventually
“fixed” it by not using a MySQL password. So I removed my MySQL user
password and the scaffold command worked. Is there a correct way to fix
this problem? I don’t want to have an empty password for my sql
account. Thanks.

I’m running ubuntu 6.06, ruby 1.8.4, rails 1.1.4, gems 0.9.0 if that
matters.

Hey,

this helped me:
http://www.vandomburg.net/pages/mysql-ruby-windows

Regards,
Gedas

On 22/07/06, Donut D. [email protected] wrote:

depot_development and so it’s not a name mismatch problem. I google’d a
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


SÄ?kmÄ?s!

Pagarbiai,
Gedas K.
http://gedas.maniakas.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs