Update vehicles_controller.rb

This commit is contained in:
2016-09-13 23:43:06 -04:00
committed by GitHub
parent 8156657eb2
commit 9c4ed3d9e1

View File

@@ -103,7 +103,7 @@ 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
@vehicles = Customer.find_by(customer_id: params[:customer_id].to_i).vehicles
respond_to do |format|
format.html { render(:text => "not implemented") }
format.js