From fe1388108cfade8749bf4992f39048b6891b0d99 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Apr 2016 10:43:58 -0400 Subject: [PATCH] Update customers_controller.rb --- app/controllers/customers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 3dcaacb..7923968 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -33,7 +33,7 @@ class CustomersController < ApplicationController def show @customer = QboCustomer.find_by_id(params[:id]) if @customer - @vehicles = @customer.vehicles + @vehicles = @customer.vehicles.paginate(:page => params[:page]) else flash[:error] = "Customer Not Found" render :index