Daniel W. wrote:
Derek Belsham wrote:
I am pretty sure that this is a common nuby problem but I cannot figure
it out i try to run scfaoldong and get a error “Before updating
scaffolding from new DB schema, try creating a table for your model”
I have mysql set up and created the tables etc.
Did you define your database connection information in
What is the syntax of your command?
Here is the config/database.yml
MySQL (default setup). Versions 4.1 and 5.0 are recommended.
Get the fast C bindings:
gem install mysql
(on OS X: gem install mysql – --include=/usr/local/lib)
And be sure to use new-style password hashing:
Connect on a TCP socket. If omitted, the adapter will connect on
domain socket given by socket instead.
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.