I have this in my view:
form_for [:support, @thread, @reply], url: support_thread_replies_path do |f|
And this in my routes.rb
:
namespace :support do
resources :threads do
resources :replies
end
end
That doesn't work:
Routing Error
No route matches
{:action=>"new", :controller=>"support/replies"}
If I remove the url:
key from my form_for
, I just get a NoMethodError
when the form helper tries to call an undefined path helper method:
I get the same Routing Error even when I remove the :support
symbol from the beginning of the array in my sample view code (using :support
was suggested by an answer to another similar question here)