If a man speaks in a forest, and his wife's not there, is he still wrong?

First sample Rails app working!

Ok, I finally got something working. I decided to work through the example in Dave Thomas' book 'Agile Web Development with Rails: A Pragmatic Guide'

(This book is not officially released until July 2005 but the authors have released a "beta" version in PDF format)

The example uses MySQL but I have translated the MySQL SQL code to Postgresql code.

Temp content:

This is the history of the commands I ran to create the sample depot app:

# cd /home/apache/robinbowes.com/rails
# rails depot
# chown -R apache:apache depot
# ln -s depot live
# cd depot/db
# vi create.mysql
# cp create.mysql create.pgsql
# vi create.pgsql

[created database and table using phpPgAdmin]

# cd ..
# vi config/database.yml

[Note: if the database config is not correct the scaffold generate fails]

# ruby script/generate scaffold Product Admin

Browse to http://rails.robinbowes.com/admin

Yey! It works!

Story Options

First sample Rails app working! | 0 comments
The following comments are owned by whomever posted them. This site is not responsible for what they say.

Topics

  • Home
  • Misc (6/0)
  • Audio (5/0)
  • Linux (21/0)
  • Family (1/0)
  • Fishing Diary (1/0)
  • OpenSolaris (7/0)
  • Computing (11/0)
  • General News (7/0)
  • Chloe (1/0)
  • Emily (2/0)
  • Twins (5/0)
  • Classifieds (2/0)
  • GeekLog (2/0)
  • Project Management (1/0)
  • User Functions






    Lost your password?