Rails with Postgresql
First, I installed the ruby-devel package (needed to build gems packages).
# yum install ruby-devel
Now instal the postgres driver for Rails:
# gem install postgres --remote
I then started to run through the tutorial on the RubyOnRails Wiki.
I created a Postgres database "rails_development" and a postgres user "rails"
I ran the script to create the "people" table.
Created a new Rails app called "WikiDemo" and made it available at http://rails.robinbowes.com
Modified config/database.yml to point to the newly created postgres database:
Created a new Controller:
# ./script/generate controller Friends list show new
Created a new Model:
# ./script/generate model Person
Edited the display code:
Edited the model:
Browsed to the site to see if it worked:
Bah, it didn't!