Re: Problems with Scaffolding ...

snacktime
Tue, 25 Oct 2005 19:45:54 -0000

On 10/25/05, Hendie Dijkman
<ruby-Vki3jUAxBCcyzzc7d281tmfPcZCv/ETZ@public.gmane.org>
wrote:
>
> Thanks for the quick response Chris.
>
> Yes, to all of your questions. I created the three databases, users, and
> the products table in the database exactly as per the book. Rails does
> connect, because if I change the username or password in the
database.ymlconfig file, it complains about not being able to connect.
>
> I delved into the rails code a little and it seems that error message
> comes from a create_sandbox method in the scaffold_generator when a
> ActiveRecord::StatementInvalid exception is thrown. Dunno, maybe that
> triggers something with someone who has had similar problems?
>


I''m probably not much help at this point, but my thought is that
it''s
database related. If it''s not on already, turn on query logging in the
database and then look at the log after trying to create the scaffolding.
There is probably something there that will give you an idea of where the
problem is.

Chris

Chris