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

相关文章:

  • 2021-12-28
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-07-18
  • 2021-08-07
猜你喜欢
  • 2021-11-07
  • 2021-07-12
  • 2021-04-14
  • 2021-11-07
  • 2021-10-21
相关资源
相似解决方案