This article describes how you can create a Rails application accessing PostgreSQL database usingNetBeans 6.

Download and Configure PostgreSQL

  1. Download PostgreSQL from here.
  2. After download and install, open the PostgreSQL command prompt (from the program menu) and initialize the database by giving the following command (in bin directory):
    initdb -D "\users\Arun Gupta\postgresql\data"

    Note, the directory specified in the command does not exist and will be created after the command is executed. The following output is shown:

Source: DZONE