Update customers_controller.rb

This commit is contained in:
2016-04-28 10:43:58 -04:00
parent b98cdbec8b
commit fe1388108c

View File

@@ -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