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
end
end
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.
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/AK-UnakdX5UJ.
For more options, visit https://groups.google.com/groups/opt_out.