Devise+Mongoid:db_name must be a String or Symbol问题的解决

github上找了一个集成了Devise和mongoid的rails3.0项目,用git拖下来之后,进行配置,在rake db:seed的时候报错
(in e:/Ruby192/project/rails3-mongoid-devise)
rake aborted!
db_name must be a string or symbol

经网上查询,结果如下:
要先在mongoid.yml里配置
development:
  host: localhost
  database: rails3_mongoid_devise_development

test:
  host: localhost
  database: rails3_mongoid_devise_test

然后在config里的environment.rb文件里加入
require 'yaml' 
YAML::ENGINE.yamler= 'syck'

你可能感兴趣的:(java,git)