Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Namespace nested in resources

#4394

When you nest a namespace in a resource, at the moment you get funky results. eg:

resources :clients do
  namespace :google do
    resource :account
  end
end

What you'd expect as path:

  /clients/:client_id/google/account
  client_google_account_path(42)

What you actually get at the moment:

  /clients/google/:client_id/account
  google_client_account_path(42)

This patch nests the namespace if we're in a resource.

Reported by Jan De Poorter · April 14th, 2010 @ 09:43 AM

State: resolved
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. José Valim
    José Valim

    Could you please check if this also works for resource - namespace - resource(s)?

    June 8th, 2010 @ 10:03 PM

  2. Repository