【发布时间】:2010-08-14 22:26:51
【问题描述】:
在 Windows 7 ruby 1.8.6、rails 2.3.8、一些基本 gem(还有 ruby-postgres)和 Jetbrains 的 IDE Rubymine 中安装后,我遇到了一些麻烦。
因此,在使用 Rubymine(database.yml 中的默认 PostgresSQL 配置)创建了一个简单项目后,我在 localhost:3000 中运行它,但它似乎无法识别:
当我第一次在“关于你的应用程序的环境”中单击 Ruby on Rails 的主页时 它返回一个错误:“我们很抱歉,但出了点问题。”,即使我创建一个带有视图的简单控制器并打开正确的 URL,它也会出现同样的问题。
我不知道问题是关于数据库还是类似的东西,但我也想知道如何在database.yml中配置它。
默认值:
adapter: postgresql
encoding: unicode
database: (name of the project)_(type: test, production or development)
pool: 5
username: (name of the project)
password: (no password)
我做了什么:
adapter: postgresql
encoding: utf-8
database: (name of database)_(type: test, production or development)
pool: 5
username: ruby
password: (no password)
host: localhost
port: 3000
对吗?
【问题讨论】:
-
你的日志文件说发生了什么?
标签: ruby-on-rails postgresql rubymine