From e8619529d43bd0b9b3480059293a76301928bd0d Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 3 Apr 2017 21:52:39 -0400 Subject: [PATCH] Added routes for filtering estimates & invoices --- config/routes.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 21aa526..8fce2bf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -34,14 +34,15 @@ resources :payments #webhook post 'qbo/webhook', :to => 'qbo#qbo_webhook' -#ajax +#java script routes get 'filter_vehicles_by_customer' => 'customers#filter_vehicles_by_customer' +get 'filter_estimates_by_customer' => 'customers#filter_estimates_by_customer' +get 'filter_invoices_by_customer' => 'customers#filter_invoices_by_customer' # Nest Vehicles under customers resources :customers do resources :vehicles get :autocomplete_customer_name, :on => :collection - get :autocomplete_customer_vehicles, :on => :collection end #allow for just vehicles too