I'm using the rails-jquery-autocomplete gem for an rfq model to search customers. The autocomplete search works fine when I'm creating a new rfq, but I get this error when I try to use the search while editing a record.
ActionController::RoutingError (No route matches [GET] "/rfqs/1/autocomplete_customer_name"):
I know what the error means but I'm not familiar enough with the routing to fix it.
Thank you ahead of time for the help
resources :rfqs do get :autocomplete_customer_name, :on => :collection member do put :toggle end end resources :customers do get :autocomplete_company_name, :on => :collection end resources :companies