This project is archived and is in readonly mode.

#6389 ✓resolved
lewy313

Routes don't assign correctly root path in namespace

Reported by lewy313 | February 8th, 2011 @ 11:56 AM

rails 3.0.3

  resources :foo do
    namespace :bar do
      root :to => "index#index"
    end
  end

That code create following routes

                             foo_root        /foo/:foo_id/bar(.:format)                                                    {:controller=>"bar/index", :action=>"index"}

I expected

foo_bar_root

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>

People watching this ticket

Referenced by

Pages