Hi there, 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 http://pastie.org/439744 --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

