I have a class Scene, which has_one Photo, and Photo belongs_to Scene. I want to create a form that ll update or create Scene and Photo simultaneously - if Scene already exists, it ll update the Photo with scene_id Scene.id, otherwise, it ll make a new Scene and a new Photo, or if there s no new photo, it ll just update the one Scene field in question ("description").
然而,我没有什么想法。 我感觉到的不是这些其他形式的。
安装了奥赫和照片模型,以使用阿塔图尔库。