I have a nested resources but i am not get a path for these resources.
routes.rb
namespace :admin do
resources :demos do
resources :demojobs, :path => "jobs" do
resources :demotutorials
end
end
end
I have try to get the new page of demotutorials page using following link:
new_admin_demo_demojob_demotutorials_path
but getting error
No route matches {:action=>"new", :controller=>"admin/demotutorials"}
working with rails version : 3.2.11
rake routeson a terminal. Anyway, that many nested levels is not a good practice, check the docs guides.rubyonrails.org/routing.html#limits-to-nesting