【发布时间】:2015-08-13 00:50:12
【问题描述】:
在 heroku(本地)上构建一个 rails 应用程序。遵循他们的 rails 和 installing postgres locally 教程。
当我运行服务器或生成迁移时,我得到以下错误:
LoadError (Could not load 'active_record/connection_adapters/posgtres_adapter'。确保 config/database.yml 中的适配器有效。如果您使用的适配器不是 'mysql'、'mysql2'、'postgresql' 或 ' sqlite3' 将必要的适配器 gem 添加到 Gemfile。):
数据库.yml:
default: &default
adapter: postgresql
encoding: unicode
pool: 5
development:
<<: *default
database: myapp_development
username: Name
password: secret
host: localhost
Gem 文件有:gem 'rails' '4.2.0' 和 gem 'pg' 安装
我机器的操作系统:Windows 64x
任何和所有帮助表示赞赏。
【问题讨论】:
标签: ruby-on-rails postgresql ruby-on-rails-4 heroku