jjzjj

AdapterNotSpecified

全部标签

ruby-on-rails - Rails/ActiveRecord - AdapterNotSpecified,即使它是

我正在做RubyonRailsTutorial.对于前三章,它使用SQLite,但后来它建议在开发中使用PostgreSQL,以便更轻松地部署Heroku。在编辑我的database.yml和Gemfile以使用pg而不是sqlite3之后,它似乎可以工作-使用Rake运行测试时除外。它会弹出一个AdapterNotSpecified错误。C:/Ruby/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0/lib/active_record/connection_adapters/connection_specification.

ruby - ActiveRecord::AdapterNotSpecified 数据库配置没有指定适配器

当我使用herokuopen我的网络应用程序工作正常但是当我使用railss(localhost)时我遇到了这个错误:ActiveRecord::AdapterNotSpecifieddatabaseconfigurationdoesnotspecifyadapter这是为什么?这是我的database.yml#PostgreSQL.Versions8.2anduparesupported.##Installthepgdriver:#geminstallpg#OnOSXwithHomebrew:#geminstallpg----with-pg-config=/usr/local/bin

mysql - Rails4 部署 ActiveRecord::AdapterNotSpecified

我的部署运行良好,直到迁移失败..rakeaborted!DEBUG[874287b0]ActiveRecord::AdapterNotSpecified:databaseconfigurationdoesnotspecifyadapterDEBUG[874287b0]/home/kadoudal/rails/swim-tech.eu/site/swimtech/shared/bundle/ruby/2.1.0/gems/activerecord-4.0.3/lib/active_record/connection_adapters/connection_specification.r