Rails Routing - Adding more RESTful actions

I have a controller called ‘manufacturers_controller.rb’ under a name
called ‘subscriber’. Thus,
controllers/subscriber/manufacturers_controller.rb. I have an action in
controller called ‘search’ and an appropriate view called

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.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs