Update customers_controller.rb

This commit is contained in:
ricky committed 2016-05-06 06:58:55 -04:00
1 parent 29ea58db36
commit 259a4fdc58
1 file changed
-1
-1
View File
@@ -47,7 +47,6 @@ class CustomersController < ApplicationController
# update a specific customer
def update
@customers = Customer.all.order(:name)
@customer = Customer.find_by_id(params[:id])
if @customer.update_attributes(params[:customer])
flash[:success] = "Customer updated"