Now I’m doing a search on the table articles and I’m returning the
result using the to_xml() function. If I specifiy to include the
respective customerarticle I get the following message:
“You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.macro”
Now I’m doing a search on the table articles and I’m returning the
result using the to_xml() function. If I specifiy to include the
respective customerarticle I get the following message:
“You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.macro”
What am I missing? Any help?
What are you passing to :include? It has to be the association name
(ie :customerarticles if your model says has_many :customerarticles)