Forum: Ruby on Rails rails table naming issue

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris H. (Guest)
on 2009-01-23 05:19
(Received via mailing list)
I have a about 4 or so tables all linked together in a chain type.
shelf->card->port->sts.  the problem is with the sts table.  when I
do:
"port =Port.find_by_card_id(??)

then i do:
port.sts.count

It keeps saying Port::St  missing or something.

If I do "port.stss.count" it is looking for table name stss.

I even did "set_table_name "sts" "  and I still get the same error.
Does anyone know how to get this to work?
This topic is locked and can not be replied to.