Tirta K. Untario
2006-Feb-10 05:58 UTC
[Rails] Error: Before updating scaffolding from new DB schema, try creating a table for your model (Product)
Hi all, I''m new to Rails, I know this is a classic error, but I cannot resolve it anyhow :( This is my system config: Windows XP SP2 Ruby 1.8.2 -> installed using windows installer version Rails 1.0.0 MySql 4.1.10 I followed the instruction on rubyonrails.org, exactly step by step. But the error occur everytime I tried to generate scaffold or generate model. I tried to googling around, I tried to reinstall Ruby''s mysql library using gem, but it failed. Help anyone? I''m totally stuck here :( -- Tirta K. Untario
Craig White
2006-Feb-10 06:15 UTC
[Rails] Error: Before updating scaffolding from new DB schema, try creating a table for your model (Product)
On Fri, 2006-02-10 at 12:57 +0700, Tirta K. Untario wrote:> Hi all, > > I''m new to Rails, I know this is a classic error, but I cannot resolve > it anyhow :( > > This is my system config: > Windows XP SP2 > Ruby 1.8.2 -> installed using windows installer version > Rails 1.0.0 > MySql 4.1.10 > > I followed the instruction on rubyonrails.org, exactly step by step. > But the error occur everytime I tried to generate scaffold or generate > model. > > I tried to googling around, I tried to reinstall Ruby''s mysql library > using gem, but it failed. > > Help anyone? I''m totally stuck here :(---- Can you connect to mysql in other ways? Did you set up a table? Are you using new or old style hashed passwords in mysql (must be new style)? What instructions are you following? You''re not offering much in terms of information. Craig
Ben Munat
2006-Feb-10 06:20 UTC
[Rails] Error: Before updating scaffolding from new DB schema, try creating a table for your model (Product)
How are you invoking script/generate? What tables do you have in your db? Did you edit your database.yml appropriately? b Tirta K. Untario wrote:> Hi all, > > I''m new to Rails, I know this is a classic error, but I cannot resolve > it anyhow :( > > This is my system config: > Windows XP SP2 > Ruby 1.8.2 -> installed using windows installer version > Rails 1.0.0 > MySql 4.1.10 > > I followed the instruction on rubyonrails.org, exactly step by step. > But the error occur everytime I tried to generate scaffold or generate > model. > > I tried to googling around, I tried to reinstall Ruby''s mysql library > using gem, but it failed. > > Help anyone? I''m totally stuck here :( > > -- > Tirta K. Untario > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Tirta K. Untario
2006-Feb-10 10:23 UTC
[Rails] Error: Before updating scaffolding from new DB schema, try creating a table for your model (Product)
Hi all, Thanks for Craig and Ben, I solved the problem :) I use PHP4 for main web development language, and I changed hashed password for MySQL to the old one long time ago. So that''s where the problem lies... -- Tirta K. Untario On 2/10/06, Craig White <craigwhite@azapple.com> wrote:> Can you connect to mysql in other ways? > > Did you set up a table? > > Are you using new or old style hashed passwords in mysql (must be new > style)? > > What instructions are you following? > > You''re not offering much in terms of information. > > Craig > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Apparently Analagous Threads
- models and validation problem
- read-only access to database?
- the dreaded "Before updating scaffolding from new DB schema, try creating a table for your model (Blog)" error
- Rails development on Mac OS X 10.4 Intel
- Error: Before updating scaffolding from new DB schema, try..