0
我有用戶,附件和表格模型Rails的更新連接表的屬性
form = @user.forms.where(attachment_id: attachment.id)
form.update_attributes(status: "full")
,當我嘗試更新連接表的屬性,它說
undefined method `update_attributes
在我的模型
,只有必要的has_many或屬於屬性。我不明白爲什麼update_attributes不起作用