I tried rolling back to rails 0.13 - no luck. Then for kicks - I created
separate users (instead of using root) and it worked (whadya know?) !
On 10/27/05, Ben Anderson
<benanderson.us-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi,
> I''m going through Dave and David''s book, but getting
stopped on page 53.
>
> C:\ruby\projects\rails\projects\depot>ruby script/generate scaffold
> Product Admi
> n
> exists app/controllers/
> exists app/helpers/
> create app/views/admin
> exists test/functional/
> dependency model
> exists app/models/
> exists test/unit/
> exists test/fixtures/
> create app/models/product.rb
> create test/unit/product_test.rb
> create test/fixtures/products.yml
> error Before updating scaffolding from new DB schema, try creating a tab
> le for your model (Product)
>
> C:\ruby\projects\rails\projects\depot>
>
> The products table is definitely in all three of the databases.
Here''s my
> database.yml:
>
> development:
> adapter: mysql
> database: depot_development
> socket: localhost
> username: root
> password: root
>
> # Warning: The database defined as ''test'' will be erased
and
> # re-generated from your development database when you run
''rake''.
> # Do not set this db to the same as development or production.
> test:
> adapter: mysql
> database: depot_test
> socket: localhost
> username: root
> password: root
>
> production:
> adapter: mysql
> database: depot_production
> socket: localhost
> username: root
> password: root
>
> I''m not sure if I''m treating the socket property
properly? I tried
> replacing it with host, with no luck. There shouldn''t be anything
wrong with
> connecting as root, should there?
> Any ideas?
> Thanks,
> Ben
>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails