Unpermitted parameter: :photos_attributes
参考:https://stackoverflow.com/questions/61058955/unpermitted-parameter-photos-attributes
在controller增加,允许使用即可:
def blog_form_params
params.require(:blog_form).permit(:title , :content ).merge!(user_id: current_user.id , :photos_attributes =>[:image, :id ,:destroy ])
end