Create My First Web Application By Ruby On Rails
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 ! :(
posted on 2006-11-25 15:18 flyingchen 阅读(203) 评论(0) 编辑 收藏 举报