[...]
It sounds like your model hasn't got a table. Is it looking for
'Legacies'? with capital L.
[...]
Changed the schema, and the database.yml file, same result:
[thufir@localhost ~]$ ./ruby.legacy.txt
Tue Jun 19 14:10:57 BST 2007
/home/thufir
thufir
Fedora Core release 6 (Zod)
X=0
while [ $X -le 20 ]
do
echo ""
X=$((X+1))
done
date
pwd
whoami
cat /etc/fedora-release
cat /home/thufir/ruby.legacy.txt
X=0
while [ $X -le 5 ]
do
echo ""
X=$((X+1))
done
echo "the database configuration file"
cat /home/thufir/legacy/config/database.yml
X=0
while [ $X -le 5 ]
do
echo ""
X=$((X+1))
done
#echo "rails lecacy..."
#this command only needs to be executed for the initial setup
rails legacy
X=0
while [ $X -le 5 ]
do
echo ""
X=$((X+1))
done
#echo "ruby /home/thufir/legacy/script/generate controller hello..."
ruby /home/thufir/legacy/script/generate controller hello
X=0
while [ $X -le 5 ]
do
echo ""
X=$((X+1))
done
echo "hello world" > /home/thufir/legacy/app/views/hello/index.rhtml
X=0
while [ $X -le 5 ]
do
echo ""
X=$((X+1))
done
#echo "ruby /home/thufir/legacy/script/generate scaffold legacy..."
ruby /home/thufir/legacy/script/generate scaffold legacy
X=0
while [ $X -le 5 ]
do
echo ""
X=$((X+1))
done
#echo "ruby script/server..."
echo "http://localhost:3000/legacies/list"
echo "http://localhost:3000/legacy/list"
X=0
while [ $X -le 5 ]
do
echo ""
X=$((X+1))
done
X=0
while [ $X -le 5 ]
do
echo ""
X=$((X+1))
done
ruby /home/thufir/legacy/script/server
the database configuration file
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.