I\'m trying to use rails 4.2.6 to develop an app. I\'m trying to use postgres for database. Server starts fine but when I try loading a page it throws this \"No connection p
If you are experiencing this error from a rake task, chances are you are not running the :environment task before your task.
:environment
Changing:
task :task_name do end
to:
task task_name: :environment do end
Should fix the issue.