# STI Broken on 1.1

**URL:** <https://www.ruby-forum.com/t/sti-broken-on-1-1/93468>\
**Category:** Rails\
**Created:** [April 3, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/sti-broken-on-1-1/93468 "2006-04-03T19:58:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [April 3, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/sti-broken-on-1-1/93468/1 "2006-04-03T19:58:41Z")

</div>

Yeah I’m getting major problems as well. I don’t know what the issue is  
but  
I’m thinking of going back to 1.0

I would really like to hear if you figure this out, kind of an important  
part of Rails for us.

-Paul

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [April 3, 2006, 8:07pm UTC](https://www.ruby-forum.com/t/sti-broken-on-1-1/93468/2 "2006-04-03T20:07:50Z")

</div>

On 4/3/06, Paul [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Yeah I’m getting major problems as well. I don’t know what the issue is but  
> I’m thinking of going back to 1.0
> 
> I would really like to hear if you figure this out, kind of an important  
> part of Rails for us.
> 
> -Paul

I make heavy use of STI, and it’s working fine for me in 1.1. Make  
sure your STI classes are in files with matching names.  
ParentClass in parent\_class.rb  
SomeSubclass in some\_subclass.rb, etc.

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [April 3, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/sti-broken-on-1-1/93468/3 "2006-04-03T20:10:54Z")

</div>

> Yeah I’m getting major problems as well. I don’t know what the issue is but  
> I’m thinking of going back to 1.0
> 
> I would really like to hear if you figure this out, kind of an important  
> part of Rails for us.

There has been no reported issues with STI in Rails 1.1. And I don’t  
see any trouble in any of my applications that uses STI with Rails  
1.1.

## Please do explore the issue you’re seeing and post a bug to [http://dev.rubyonrails.org](http://dev.rubyonrails.org) when you arrive at something reproducible.

David Heinemeier H.  
[http://www.loudthinking.com](http://www.loudthinking.com) – Broadcasting Brain  
[http://www.basecamphq.com](http://www.basecamphq.com) – Online project management  
[http://www.backpackit.com](http://www.backpackit.com) – Personal information manager  
[http://www.rubyonrails.com](http://www.rubyonrails.com) – Web-application framework

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [April 3, 2006, 8:20pm UTC](https://www.ruby-forum.com/t/sti-broken-on-1-1/93468/4 "2006-04-03T20:20:17Z")

</div>

Matthew B. wrote:

> Wilson B. wrote:
> 
> > I make heavy use of STI, and it’s working fine for me in 1.1. Make  
> > sure your STI classes are in files with matching names.  
> > ParentClass in parent\_class.rb  
> > SomeSubclass in some\_subclass.rb, etc.
> 
> Is this a new thing? I would swear I’ve put SubClass in Class’s model  
> file before…

Well, either my memory is b0rked or it is new, but regardless, throwing  
the class definition in the same-named file did fix my issue. Thanks  
Wilson!

–  
Matthew B. :: removed\_email\_address@domain.invalid  
Resume & Portfolio @ [http://madhatted.com](http://madhatted.com)

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [April 3, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/sti-broken-on-1-1/93468/5 "2006-04-03T20:15:40Z")

</div>

Dave and Paul, I think he’s refferring to my post:

[http://www.ruby-forum.com/topic/60635#57887](http://www.ruby-forum.com/topic/60635#57887)

Wilson B. wrote:

> I make heavy use of STI, and it’s working fine for me in 1.1. Make  
> sure your STI classes are in files with matching names.  
> ParentClass in parent\_class.rb  
> SomeSubclass in some\_subclass.rb, etc.

Is this a new thing? I would swear I’ve put SubClass in Class’s model  
file before…

–  
Matthew B. :: removed\_email\_address@domain.invalid  
Resume & Portfolio @ [http://madhatted.com](http://madhatted.com)
