I have this routes
resources :childs do
resources :draws
end
resources :draws
How can I write a single _form.htm.erb for adding and editing draws?
I mean, from new_draw_path
I would use form_for(@draw)
and then select the child with f.select helper
and from new_child_draw_path
I would use form_for([@child,@draw])
selecting child from params
How could I combine both approaches in a single view or helper ?