This project is archived and is in readonly mode.

#1024 ✓resolved
Lori Holden

defaults routes for namespaces

Reported by Lori Holden | September 11th, 2008 @ 03:17 PM | in 3.x

Namespace support in routes is a little lacking, and if we want to support any form of defaults for our namespace, we have to rely on whatever default route we have setup.

This patch adds support for defaults within namespaces.

The following example now works:

map.namespace 'api' do |api|
  api.connect ':controller/:action/:id'
end

urls like: /api/product/list will now match to the api's default route.

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

Tags

Pages