Fixed typo with params

This commit is contained in:
2023-12-29 20:17:46 -05:00
parent 7d510e4028
commit 96e4e9df66

View File

@@ -115,7 +115,7 @@ class CustomersController < ApplicationController
def update def update
begin begin
@customer = Customer.find_by_id(params[:id]) @customer = Customer.find_by_id(params[:id])
if @customer.update_attributes(allowed_params) if @customer.update_attributes(params)
flash[:notice] = "Customer updated" flash[:notice] = "Customer updated"
redirect_to @customer redirect_to @customer
else else