1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

as changes named routes, path is the appropriate option in this case

This commit is contained in:
Santiago Pastorino 2010-04-29 12:02:02 -03:00
parent 8d0bdbf0b7
commit 199cb0f80b

View file

@ -273,7 +273,7 @@ end
<ruby>
scope 'es' do
resources :projects, :path_names => { :edit => 'cambiar' }, :as => 'projeto'
resources :projects, :path_names => { :edit => 'cambiar' }, :path => 'projeto'
end
# Gives you the edit action with /es/projeto/1/cambiar