I have some models like this:
class A < ActiveRecord; end
class B < A; end
Now I want to use an action ‘list’ to list out both As and Bs, and I
hope every item shows depending on it model. Like this:
A1: name=xx, age=yy
B1: name=mm, age=uu, sex=male
A2: name=aa, age=bb
I think this is just a question on polymorphism, right?
Thanks.