This project is archived and is in readonly mode.

#5048 ✓resolved
Rafael Barbosa

routes => :except being inherited by sub-level resources

Reported by Rafael Barbosa | July 5th, 2010 @ 04:09 PM

This route declaration

resources :artists, :except => [:new,:create] do
  resources :releases do
    resources :tracks
  end
end

Supresses the :new and :create routes for releases and tracks too. To put them back in I had to:

resources :artists, :except => [:new,:create] do
  resources :releases, :except => [:none] do
    resources :tracks
  end
end

Which seems odd. Is this the new expected behavior?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages