I have question about param name for nested resources in rails routes For example i have:
resources :controller1, param: :controller_id do
resources :controlle
Try this and see;
resources :controller1, param: :controller_id, path: "" do
resources :controller2, path: ""
end
how about this:
resources :controller1, param: :controller_id do
member do
resources :controller2
end
end
will generate
GET /controller1/:controller_id
GET /controller1/:controller_id/controller2
GET /controller1/:controller_id/controller2/:id
...