在Windows 7安裝後,我遇到了一些麻煩ruby 1.8.6,rails 2.3.8,一些基本的gem(ruby-postgres)以及Jetbrains的IDE Rubymine。Ruby on Rails + Postgres:配置問題
所以,用的RubyMine(在database.yml中PostgreSQL的默認配置)創建一個簡單的項目後,我在本地主機運行它: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
是不是?
你說什麼日誌文件說? – theIV 2010-08-14 22:36:15