Thank you so much for your help. I finally found what was wrong, I needed to build the field photo in the edit action of my controller, other the field does not exist and therefore do not appear in the view.
def edit
if @user.photos.empty?
@user.photos.build
end
end
photo is embedded into the user model (one to many relation) if you have a one to one relation you have to do:
if @user.photo.blank?
@user.photo = Photo.new
end
Thank you very much for all your help, still so much to learn.