ActiveRecord Inheritance

Hi,

I have two questions regarding the ActiveRecord Inheritance.

  1. How can I use rail API to create model which is inherited from
    another model?

  2. Which approach should I use as inheritance: Single table Inheritance
    or Multi table inheritance? Does RoR support both? If so, what is the
    command to do that?

Thanks,
Kahou

On 28 November 2011 07:01, kahou l. [email protected] wrote:

  1. Which approach should I use as inheritance: Single table Inheritance
    or Multi table inheritance? Does RoR support both? If so, what is the
    command to do that?

If you Google for “rails inheritance” you should find lots of answers
to these questions. If after that, anything specific is not clear to
you, please ask again.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs