試圖安裝的Padrino web框架與下面的信息連接到我的本地PostgreSQL數據庫:不能Padrino連接到PostgreSQL數據庫W/ActiveRecord的
數據庫
List of databases
| Name | Owner
|------------------------|------------
| postgres | postgres
| template0 | postgres
| template1 | postgres
|trustmob_ui_development | postgres
|trustmob_ui_production | postgres
|trustmob_ui_test | postgres
(6 rows)
配置/ database.rb https://gist.github.com/1046031
ActiveRecord::Base.configurations[:development] = {
:adapter => 'postgresql',
:host => 'localhost',
:port => '5432',
:database => 'trustmob_ui_development',
:username => 'postgres',
:password => ''
}
當我嘗試運行時padrino rake ar:migrate
我收到以下錯誤消息。完整的錯誤吉斯特這裏:https://gist.github.com/1046044
rake aborted!
ActiveRecord::ConnectionNotEstablished
/usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/....
不知道我做錯了。我如何讓Padrino看到/與數據庫交談?
〜Dan