1. After I create table in database ,then try to use the command to link the database :
ruby script/generate scaffold Product Admin
But an error happend. :
C:/ruby/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 17, col 2: ` h
ost: localhost' (ArgumentError)
The database.yml :
for example :
development:
adapter: mysql
database: depot_development
username: root
password: 123
host: localhost
Result: before the parameter must have a blank space ! How fool the ruby is ! :(