Has anyone had any experience of using nested attributes with polymorphic associations ? I cannot see how it would work as the model would need to know the class of the object to create (when creating a new record for the association).
Here is an example class MyClass < ActiveRecord::Base belongs_to :owner, :polymorphic=>true accepts_nested_attributes_for :owner end This generates a method called 'owner_attributes=' which is fair enough, but it does not generate the method 'build_owner' which is required by the looks of it. So, if I try using owner_attributes=, then straight away it complains that the method build_owner is missing. Regards Gary Taylor --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

