From 13fccec54bcde9a6fb311195ae178982ef4929a9 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 29 Jan 2017 19:36:58 -0500 Subject: [PATCH] Update routes.rb --- config/routes.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index f40db41..b7f4dcf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -40,10 +40,8 @@ get "update_vehicles" => 'vehicles#update_vehicles', as: 'update_vehicles' # Nest Vehicles under customers resources :customers do resources :vehicles + get :autocomplete_customer_name, :on => :collection end #allow for just vehicles too resources :vehicles - -# autocomplete -get '/auto_complete/customer', :to => 'customers#auto_complete', :via => :get, :as => 'customers_auto_complete'