Update vehicles_controller.rb

This commit is contained in:
2016-08-03 22:05:25 -04:00
committed by GitHub
parent 65f6f52252
commit 0251191844

View File

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