-1
我收到的時候我試圖保存記錄::加載ActiveModel在ForbiddenAttributesError節省客戶記錄
::加載ActiveModel在ForbiddenAttributesError#CustomersController創建
def create
@customer = Customer.new(params[:customer])
if @customer.save
redirect_to customers_path
end
#...
end
請將代碼示例和錯誤消息添加到您的問題。正如它寫的那樣,你不清楚你在問什麼。 – mysmallidea