# STI and Resources

**URL:** <https://www.ruby-forum.com/t/sti-and-resources/129627>\
**Category:** Rails\
**Created:** [February 20, 2008, 6:40am UTC](https://www.ruby-forum.com/t/sti-and-resources/129627 "2008-02-20T06:40:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@lee](https://www.ruby-forum.com/u/lee)\
**Post date:** [February 20, 2008, 6:40am UTC](https://www.ruby-forum.com/t/sti-and-resources/129627/1 "2008-02-20T06:40:11Z")

</div>

Perhaps someone can share some insight:

I’m modeling a simple English-Japanese dictionary. Phase 1 is simple.

There are Entries, but I need to keep in mind that verbs, nouns,  
adjectives all conjugate differently. I need some place for that  
logic code in the future.

Entry:  
t.string ‘type’, ‘english’, ‘japanese’

So I chose single table inheritance. It gives a model for each word  
type and I can put the methods needed for future tools, quizzes, etc.  
there.

However, alot of trouble follows. I have to handle the entry type and  
instantiate the proper class in the create method. doable. But now  
all of simply\_helpful looks at my object and wants to render things  
like ‘noun\_url’ instead of ‘entry\_url’.

I don’t feel that I need to map every word type in the routes. I only  
need one controller.

Thoughts?
