Yep that's finally how I will have to do it... but this is not what I wanted. A has_one relation means that I have to access things like:
Anotherclass.property Anotherclass.childclass.specific_property Anotherclass.childclass.parentclass.common_property And more important... I need to manually manage related objects (or create hooks os similar). I mean I need for example to do something like: a = Anotherclass.new b = Childclass.new a.childclass = b ... and so on... I was thinking "rails' magic" was really magic ;-) On Mon, 2010-09-13 at 16:06 +0200, Marnen Laibow-Koser wrote: > jruiz wrote: > > Well I really wanted to have inheritance on activerecord based classes > > (with db tables saving common data in base class and concrete data in > > subclasses). Sad to know rails can't do it. I'll try to do what I need > > with a different logic. > > You can do that with a has_one relationship. > > > > > Thanks a lot for your help Fred :-) > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@marnen.org > -- > Posted via http://www.ruby-forum.com/. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.