Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:33:22+00:00 2026-06-05T01:33:22+00:00

I just installed PostgreSQL with homebrew: $ brew install postgresql I installed the pg

  • 0

I just installed PostgreSQL with homebrew:

$ brew install postgresql

I installed the pg gem with:

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

I changed my app’s database.yml to

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 i load any page I get the error:

ActiveRecord::ConnectionNotEstablished

I can connect to the db with pgAdmin (u:vise890 P:{none}) and i see the databases.

I am doing example3 from the Ruby on Rails Tutorial

If you want to check the whole thing: Sample App github branch

Thanks in advance guys!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:33:24+00:00Added an answer on June 5, 2026 at 1:33 am

    Ok, nevermind. I started from scratch and it worked. Here’s the walkthrough in case you are interested

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed postgresql on my mac (lion) using homebrew, and when I use
I just recently installed postgresql for mac with this . The problem I get,
I've just installed ArcGIS Server Enterprise Advanced with ArcSDE and PostgreSQL, on a virtual
I've just installed PgAdmin 8.4 on an OSX Lion 10.7.3 pc with Postgres 9.1
I just installed PostgreSQL 8.4.7 with EnterpriseDB's one-click installer on Mac OS 10.6.6. I
I just installed PostgreSQL-8.4 on Ubuntu. How do I start it / its GUI,
Just installed Xcode 4 so far so good, except that Apple changed all the
I have just installed PostgreSQL 8.3.4 on Mac OS X 10.5 (using ports), but
I just did my first install of PostgreSQL 9.1 on Ubuntu 10.04. note: I
I've just installed PostgreSQL 9.x on my mac and when trying to run bundle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.