# Rails table naming issue

**URL:** <https://www.ruby-forum.com/t/rails-table-naming-issue/158422>\
**Category:** Rails\
**Created:** [January 23, 2009, 4:19am UTC](https://www.ruby-forum.com/t/rails-table-naming-issue/158422 "2009-01-23T04:19:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [January 23, 2009, 4:19am UTC](https://www.ruby-forum.com/t/rails-table-naming-issue/158422/1 "2009-01-23T04:19:14Z")

</div>

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?
