PG::ConnectionBad in ConnectsController#index

could not connect to server: Connection refused Is the server running on host "db" (10.0.0.22) and accepting TCP/IP connections on port 5432?

Extracted source (around line #15):
13
14
15
16
17
18
              
private
def set_platform
@platform = Platform.find(params[:platform_id])
end
def set_resource_link

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"user_id"=>"18337", "platform_id"=>"27", "resource_link_id"=>"186"}

Response

Headers:

None