1
嗨大家在使用ActiveRecord和'mysql2'gem時遇到問題。我使用的鐵軌4.0.4有在我的配置,這些線/ application.rb中如何使用mysql2 gem配置ActiveRecord數據庫連接
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
當我嘗試運行「軌道G型用戶」我得到
invoke active_record
/Users/edjasper/.rvm/gems/ruby-2.1.1/gems/railties4.0.4/lib/rails/application/configuration.rb:110:in `database_configuration': Could not load database configuration. No such file - /Users/edjasper/Desktop/associations_challenge_8/config/database.yml (RuntimeError
什麼建議嗎?