Donut Donut
2006-Jul-22 00:44 UTC
[Rails] 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. -- Posted via http://www.ruby-forum.com/.
Donut Donut
2006-Jul-22 00:51 UTC
[Rails] Re: Error: Before updating scaffolding from new DB schema, t
I''m running ubuntu 6.06, ruby 1.8.4, rails 1.1.4, gems 0.9.0 if that matters. -- Posted via http://www.ruby-forum.com/.
Gedas Kucinskas
2006-Jul-22 06:22 UTC
[Rails] Error: Before updating scaffolding from new DB schema, try..
Hey, this helped me: http://www.vandomburg.net/pages/mysql-ruby-windows Regards, Gedas On 22/07/06, Donut Donut <chitam@gmail.com> wrote:> 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. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- S?km?s! Pagarbiai, Gedas Kucinskas http://gedas.maniakas.com