aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/command_line.md
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-04 14:24:46 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-04 14:24:46 +0900
commit40c3d80296763aed4df3b918ace39312fd0a1bd9 (patch)
tree311e8cd67fc42d9e9802b572577b168f153c92d2 /guides/source/command_line.md
parent654f0d6a1520fc6a0a0396e78255a9ec50594e44 (diff)
downloadrails-40c3d80296763aed4df3b918ace39312fd0a1bd9.tar.gz
rails-40c3d80296763aed4df3b918ace39312fd0a1bd9.tar.bz2
rails-40c3d80296763aed4df3b918ace39312fd0a1bd9.zip
update the example of generated postgresql config
Diffstat (limited to 'guides/source/command_line.md')
-rw-r--r--guides/source/command_line.md16
1 files changed, 11 insertions, 5 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index 26bc08032a..a23e5011be 100644
--- a/guides/source/command_line.md
+++ b/guides/source/command_line.md
@@ -564,14 +564,20 @@ We had to create the **gitapp** directory and initialize an empty git repository
$ cat config/database.yml
# PostgreSQL. Versions 8.2 and up are supported.
#
-# Install the ruby-postgres driver:
-# gem install ruby-postgres
-# On Mac OS X:
-# gem install ruby-postgres -- --include=/usr/local/pgsql
+# Install the pg driver:
+# gem install pg
+# On OS X with Homebrew:
+# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
+# On OS X with MacPorts:
+# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
-# gem install ruby-postgres
+# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
+#
+# Configure Using Gemfile
+# gem 'pg'
+#
development:
adapter: postgresql
encoding: unicode