As Tim has pointed out, this should be datum for the singular and data
for the plural. I would also point out that you will make life easier
for yourself if you stick to the Rails conventions for capitalisation
and underscores. In this case the class would be something like
TcDatum and the table tc_data (or something completely different if
you do not like datum). Similarly I would change the names of the
other classes you mention.
Colin
Colin
"you will make life easier for yourself if you stick to the Rails
conventions for capitalisation and underscores."
Actually I was trying to do that. My boss told me (he is also a
newbie) that table names start with a capital letter, though I cannot
find documentation to that effect.
If you can point me to any references to naming conventions I would
appreciate it, thanks.
I start each table with "tc_" because I am coming from Drupal where
all tables of all modules are in one database and this is necessary to
prevent name conflicts.
tc_datum
tc_datum
Woops, table name would be tc_data while the class would be Data (or TcData if you don't use table_name_prefix). My bad.