Forum: Ruby on Rails error running generate scaffold - doesn't see table which is

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Daniel M. (Guest)
on 2006-03-03 22:24
(Received via mailing list)
Hi

I'm trying to get some basic stuff working from the "Agile Web Dev with
ROR"
book - chapter 6 "Create the Maintenance App". (On linux, mysql 4.1,
ruby
1.8.4)

I have the depot_development db created, and teh "products" table
definitely
exists.

The user name and pw are correct in database.yml

But I get this:
<snip>
daniel@roomatthetop:~/work/demo$ 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
       error  Before updating scaffolding from new DB schema, try
creating a
table for your model (Product)
</unsnip>

Has to be something simple (I've already made this work on win box
previously, only did it on my linux because I got an identical error
when
trying to throw ror at a more complex schema I want to play with).

I didn't see any clues in the errata for the book. Any ideas on what
could
be the problem, or how to debug?

cheers

Daniel



--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
This topic is locked and can not be replied to.