0

i'm using Single Table Inheritance in ruby on rails to model various animals. So i have a base Animal Class and then i have various subclasses in the models/animal folder.

When the user creates an animal, i want to show a select of the various animal types which allows the user to choose a "valid" animal ( which means one animal for which a class exists ).

How can i do this?

Nicola Peluchetti
  • 76,206
  • 31
  • 145
  • 192

1 Answers1

1

Your two choices are

mabako
  • 1,213
  • 11
  • 19