ruby on rails - ActiveRecord::ConnectionNotEstablished with PostgreSQL 9.1.3 and RoR 3.2.5 -


i installed postgresql homebrew:

$ brew install postgresql 

i installed pg gem with:

 $ gem install pg -- --with-pg-config= '/usr/local/var/postgres/postgresql.conf' 

i changed app's database.yml

development:   adapter: postgresql   encoding: unicode   database: rails_dev   pool: 5   username: vise890   password:  test:   adapter: postgresql   encoding: unicode   database: rails_test   pool: 5   username: vise890   password:  production:   adapter: postgresql   encoding: unicode   database: ddb   port: 5432   pool: 5   username: postgres   password: admin 

however, whenever load page error:

activerecord::connectionnotestablished 

i can connect db pgadmin (u:vise890 p:{none}) , see databases.

i doing example3 ruby on rails tutorial

if want check whole thing: sample app github branch

thanks in advance guys!

ok, nevermind. started scratch , worked. here's the walkthrough in case interested


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -