Update customers_controller.rb

This commit is contained in:
2016-05-11 11:07:34 -04:00
parent 8120296154
commit 65577b57dd

View File

@@ -49,11 +49,11 @@ class CustomersController < ApplicationController
# return an HTML form for editing a customer
def edit
#begin
begin
@customer = Customer.find_by_id(params[:id])
#rescue ActiveRecord::RecordNotFound
# render_404
#end
rescue ActiveRecord::RecordNotFound
render_404
end
end
# update a specific customer