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.

Changeset [9651ca751c71cb132c47a32291b9647365b617f5] by Carlos Antonio da Silva

Revision 9651ca751c71cb132c47a32291b9647365b617f5, committed by Carlos Antonio da Silva · June 22nd, 2010 @ 11:49 PM

Add the :path option to match routes when given as symbols. This is specially useful in http helpers for generating routes in scenarios like:

resources :users, :path => 'usuarios' do

get :search, :on => :collection, :path => 'pesquisar'

end

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/9651ca751c71cb132c47a32291b964...

2 changed files

  • M actionpack/lib/action_dispatch/routing/mapper.rb
  • M actionpack/test/dispatch/routing_test.rb