Create My First Web Application By Ruby On Rails

作者: flyingchen
发布时间:2015-07-13 11:31:54

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 :

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 ! :(