I have a controller called ‘manufacturers_controller.rb’ under a name space called ‘subscriber’. Thus, controllers/subscriber/manufacturers_controller.rb. I have an action in my controller called ‘search’ and an appropriate view called 'views/subscriber/manufacturers/search.html.erb.
I’ve tried writing the route like so,
namespace :subscriber do
resources :manufacturers do
get ‘search’, on: :collection
This gives me a stack to deep error.
I’ve tried match ‘/subscriber/manufacturers/search’ => ‘manufacturers#search’, via: :get
This give me an uninitialized constant error.
Anyone have any suggestions? They would be greatly appreciated.