Some member routes with specific names are not added with the expected :id
inside the query string.
These routes:
resources :tests do
member do
get :foo
end
end
resources :contacts do
member do
get :foo
end
end
resource :tasks do
member do
get :foo
end
end
resource :fruits do
member do
get :foo
end
end
resource :cars do
member do
get :foo
end
end
resources :appointments do
member do
get :foo
end
end
Produces this:
foo_test GET /tests/:id/foo(.:format) tests#foo
foo_contact GET /contacts/:id/foo(.:format) contacts#foo
foo_tasks GET /tasks/foo(.:format) tasks#foo
foo_fruits GET /fruits/foo(.:format) fruits#foo
foo_cars GET /cars/foo(.:format) cars#foo
foo_appointment GET /appointments/:id/foo(.:format) appointments#foo
Tasks, fruits and cars do not have an id. Why is that?