This project is archived and is in readonly mode.

#3951 ✓invalid
Lasse Bunk

In the new router, "can't use member outside resources scope"

Reported by Lasse Bunk | February 13th, 2010 @ 07:46 PM

In Rails 2.3.5 it was possible to have a member on a RESTful resource.

When trying this in Rails 3.0.0.beta:

resources :users do

resource :open_id do
  member do
    get :remove
  end
end

end

It fails with:

ArgumentError: can't use member outside resources scope

The same occurs when using collection inside resource.

Is this on purpose, and if so, is there another solution?

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>

Pages