0
好吧,我有一個新的Rails應用程序,我已經在ec2上的Ubuntu 11.10,它有mongoid作爲分貝,我不斷收到這個錯誤ActionView :: Template :: Error(db_name必須是一個字符串或符號):
ActionView::Template::Error (db_name must be a string or symbol):
這裏是我的配置/ mongoid.yml
development:
host: localhost
database: mm_development
test:
host: localhost
database: mm_test
# set these environment variables on your prod server
production:
host: <%= ENV['MONGOID_HOST'] %>
port: <%= ENV['MONGOID_PORT'] %>
username: <%= ENV['MONGOID_USERNAME'] %>
password: <%= ENV['MONGOID_PASSWORD'] %>
database: <%= ENV['MONGOID_DATABASE'] %>
# slaves:
# - host: slave1.local
# port: 27018
# - host: slave2.local
# port: 27019
和我的database.yml是空的,因爲我不知道有什麼需要去那裏,如果什麼。這裏是我的mongoid
gem 'rails', '3.2.3'
gem 'jquery-rails'
gem 'haml'
gem 'unicorn'
gem 'mongoid'
第一的Gemfile我想知道是否有人知道我需要什麼用的database.yml做,然後我如何解決這個問題....蒙戈啓動並運行,但這個錯誤令人困惑