I just want to get a listing of my database, as I've done with a dummy example. Right now I'm getting:
"Routing Error
no route found to match "/legacy/list" with {:method=>:get}" <http://localhost:3000/legacy/list>
and I also get
"Routing Error
no route found to match "/legacies/list" with {:method=>:get}" <http://localhost:3000/legacies/list>
Here's the terminal output:
[thufir@localhost ~]$ ./ruby.legacy.txt
Wed Jun 13 00:53:07 BST 2007 /home/thufir thufir Fedora Core release 6 (Zod) echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo ""
date pwd whoami cat /etc/fedora-release cat /home/thufir/ruby.legacy.txt
echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo ""
echo "the database configuration file" cat /home/thufir/legacy/config/database.yml
echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "" #echo "rails lecacy..." #this command only needs to be executed for the initial setup rails legacy
echo "" echo "" echo "" #echo "ruby /home/thufir/legacy/script/generate controller hello..." ruby /home/thufir/legacy/script/generate controller hello
echo "" echo "" echo "" echo "hello world" > /home/thufir/legacy/app/views/hello/index.rhtml
echo "" echo "" echo "" #echo "ruby /home/thufir/legacy/script/generate scaffold legacy..." ruby /home/thufir/legacy/script/generate scaffold legacy
echo "" echo "" echo "" #echo "ruby script/server..."
echo "http://localhost:3000/legacies/list" echo "http://localhost:3000/legacy/list"
echo "" echo "" echo "" echo ""
ruby /home/thufir/legacy/script/server
the database configuration file # MySQL (default setup). Versions 4.1 and 5.0 are recommended.