I am trying to build a forum while nesting the routes and I keep running into this error:
undefined method `forum_threads_path' for
I have nested my routes as so in my routes.rb file
resources :forum_subjects do
resources :forum_threads, module: :forum_subjects do
resources :forum_msgs, module: :forum_threads
end
end
I am trying to call this using form_for in a partial of the _form.html.erb
<%= form_for [@forum_subject, @forum_thread] do |f| %>
My view files are also located in folders within the one main one: forum_subjects/forum_threads/forum_posts where all the view files are also nested.
ForumandThreadright? And also are they namespaced?