I have created an simple rails project. All worked fine until I tried to add a new model Paintings that belongs_to treatment and an Patient>
Paintings
belongs_to
Patient>
Please try
= f.fields_for :paintings, Painting.new do |p|