Update customers_controller.rb

This commit is contained in:
2016-05-11 07:25:57 -04:00
parent 6896c94457
commit 1500493108

View File

@@ -41,6 +41,7 @@ class CustomersController < ApplicationController
@customer = Customer.find_by_id(params[:id])
if @customer
@vehicles = @customer.vehicles.paginate(:page => params[:page])
@issues = @customer.issues
else
flash[:error] = "Customer Not Found"
render :index