Topic: Convert routes from Rails 2 to Rails 3

map.resources :users, :collection => { :access_history => :get }, :member => { :change_access => :any }

Hello, I'm trying to convert my Rails 2 routes to an equivelent code for Rails 3. How do I replace the keyword <b>:any</b> in Rails 3?

Thank you.

Re: Convert routes from Rails 2 to Rails 3

I guess the :any-part will be:

resources :users do
  get :change_access, :on => :member
  match :change_access, :on => :member
end

via http://stackoverflow.com/questions/2999 … s-3-routes