diff --git a/config/routes.rb b/config/routes.rb index 43cde14..ee88fff 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -33,7 +33,7 @@ get "update_vehicles" => 'vehicles#update_vehicles', as: 'update_vehicles' # Nest Vehicles under customers resources :customers do - get :autocomplete_customer_name, :on => :collection + get :autocomplete_name, :on => :collection resources :vehicles end