I created few models with STI, parent model is Account, child models
are CreditCard, DebitCard, etc.. several sub-models, using STI.
Every model works fine individually, but I have another model user
associated with account
user has_many accounts
account belongs_to user
The problems are :
1. Cant use association to create sub-models, like
User.first.creditcards.new, but I can use User.first.accounts.new.
2. How can use same controller AccountsController to create different
sub-models, actually I hardly use Account Model.
codes are as following