sgrover at open2space.com
Fri Feb 2 00:18:01 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Anyone have experience with Ruby?
I'm diving into it with a test project, and have been reviewing
tutorials and other such articles. They all seem to be telling me
"about" what needs to be done, rather than "what" to do. Granted, I'm
not following the rules exactly either - I'm trying to apply what
they're indicating to my own data model/needs.
So, I have tweaked my data model to follow the naming conventions that
are indicated (table names are plural, all ID fields are called "id",
etc). I ran "rails myproject" to get my structure, and edited the
database.yml file to point to my database. Then I ran the
./script/generate scaffold Tables on a bunch of my tables. So far, so
good. No errors reported.
Next I started my server with ./script/server, and tried to request a
page at http://127.0.0.1:3000/contacts. this resulted in the following:
NameError in ContactsController#index
uninitialized constant Contact
Application Trace | Framework Trace | Full Trace
So, I think either I missed a step, or my rails environment is not set
up right. I've had partial success with some VERY basic tables I've set
up and was able to get those at least to the listing screen.
I've been struggling with this one for the past hour, so I'm calling it
a night. But, I thought maybe some folks here might know enough to help
out. I think I'm at that "hand holding" stage we all need when starting
a new language.
Thanks for any input.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the clug-progsig