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.

Routing Rails 3.0b4 : namespace and match

#5034

I have a routing problem with namespace :

namespace :admin do
  match ':controller(/:action(/:id(.:format)))'
end

is not working.

Even with an Admin::TestController (and an index action) in app/controllers/admin/test_controller.rb, I obtain No route matches "/admin/test"

Rails 3.0b4
ruby 1.8.7 (2009-06-12 patchlevel 174)

Reported by pvet · July 2nd, 2010 @ 09:54 AM

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Repository
  2. José Valim
    José Valim
    • Assigned user set to José Valim
    • Importance changed from to Low

    July 2nd, 2010 @ 06:19 PM

  3. Nataniel
    Nataniel

    There's a related problem: url_for :controller => 'admin/test' does not work even if http://localhost:3000/admin/test works fine.

    July 6th, 2010 @ 12:59 AM