On Apr 19, 1:50 am, Me <[email protected]> wrote: > person = Person.create(params[:person]) > @contact = Contact.create(params[:contact]) > person.contactable = @contact > > It goes without an error but puts NIL in the contactable_type and > contactable_id columns. > > Anyone have an idea why? I spent a couple hours with this earlier.
Are you saving the person record after having assigned the contactable ? Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

