Postgres Problems with Phusion Deployment (Rails) FATAL:  Ident authentication failed for user "test-postgres"


So I have a postgres server hosting a side of my database access for my Rails application and I have a database for production set up and a user for production set up but I keep getting the previous error whenever I try to view my Rails application from a browser. Can somebody help me out? I have the postgres user created and the database created already...
Read the Ubuntu documentation on their PostgreSQL packages, which you'll find in /usr/share/doc . Alternately, there's a nice wiki page on it here: https://help.ubuntu.com/community/PostgreSQL (first hit for "ubuntu postgresql").

You have a pg_hba.conf file that's set to try to use ident authentication for host (TCP/IP) connections, but you don't have an identd running or you're trying to connect as a different PostgreSQL user to your unix username.

You need to set a paassword for the user and change the authentication method to md5. See the client authentication chapter of the documentation.

(A truly definitive answer would be easier to make if you'd given the command you ran to get that error).