Hi !
I am a newbie !
I want to use scaffold !
I dont know if I undestand everything right !
-
create table in mysql (I use mysql query browser)
-
set config/database.yml
adapter: mysql
database: hms
host: 127.0.0.1
username: root
password:
socket: /var/run/mysqld/mysqld.sock
- rails ruby script/generate scaffold link Admin
tulap@Yumi:~/rails/howmanystep$ ruby script/generate scaffold linkP
Admin
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists app/views/layouts/
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical app/models/link_p.rb
identical test/unit/link_p_test.rb
identical test/fixtures/link_ps.yml
error Before updating scaffolding from new DB schema, try
creating a table for your model (LinkP)
Where is my error ?
Thanks !!!
M.