I\'m new to Ruby (coming from a Java background) and was given access to a RoR project from a Git repository. I was able to get Ruby built with rbenv and Postgres installed
If during the installation of the gem the pq installation is not in path so it could not be found by the gem. Than the gem would not work correct.
psql
gem unistall pg
bundle install
gem install pg