routing - Right way to handle deeply nested resources in Rails -
so have 4 models, a, b, c, , d associate has_many , belong_to. want have nested route formation d.
d belongs_to a, b , c , there no case can otherwise. when creating nested resource route doing:
resources :a resources :b resources :c resources :d end end end
now creates url want, don't need of resources b , c creating under formation. never have new_a_b_path call anywhere in code. want know a, b , c when i'm creating or editing new d.
what right way handle this?
Comments
Post a Comment