This project is archived and is in readonly mode.

#4936 ✓resolved
Carlos Antonio da Silva

Namespace options in routes

Reported by Carlos Antonio da Silva | June 22nd, 2010 @ 09:41 PM

The attached patch allow to pass options to namespace in routes, such as :path, as in the following example:

namespace :customers, :path => 'clientes' do
  root :to => 'home#index'
end

This is a really common situation in Rails 2.x apps, when the path might be different.

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

Attachments

Referenced by

Pages