From 65f343fb74b1791daeb162add8371faac8fab31e Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 3 Aug 2016 22:13:18 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 5cb5f3a..22a1294 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -98,7 +98,9 @@ class VehiclesController < ApplicationController # returns a dynamic list of vehicles owned by a customer def update_vehicles @vehicles = Customer.find_by_id(params[:customer_id].to_i).vehicles - respond_to :js + respond_to do |format| + format.js + end end private