Under normal circumstances if one wants to embed resources within other resources in Ruby on Rails in the routes.rb
file it would look like this:
# routes.rb
resources :parents do
resources :children
end
The above will allow for a url like http://localhost:3000/parents/1/children.
My question is how to achieve the same result with the default devise_for :parents
that exists in my routes.rb
file?
I tried:
# routes.rb
devise_for :parents do
resources :children
end
and it did not work properly.
Any help is greatly appreciated!