Update vehicles_controller.rb

This commit is contained in:
2016-08-03 21:54:05 -04:00
committed by GitHub
parent 56c895388d
commit 11da8e7a43

View File

@@ -110,7 +110,7 @@ class VehiclesController < ApplicationController
# returns a dynamic list of vehicles owned by a customer
def update_vehicles
@vehicles = Customer.find_by_id(params[:customer].to_i).vehicles
@vehicles = Customer.find_by_id(params[:customer_id].to_i).vehicles
respond_to do |format|
format.js
end