From 65577b57dd2dbc419e1ae5a84825b53785520c01 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 11 May 2016 11:07:34 -0400 Subject: [PATCH] Update customers_controller.rb --- app/controllers/customers_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index cf97868..7e60af3 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -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