build method and nested forms

What do you mean that “pet’s attributes can’t be found”? found where? how? show the code that doesn’t work for you.