Update customers_controller.rb

This commit is contained in:
2016-05-11 11:06:00 -04:00
parent 7a1d769581
commit 8120296154

View File

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