Commit 41c29b0951580d3bf973dc643798a111191ccdb3
1 parent
b1393db3
Exists in
master
and in
29 other branches
Fix account controller route
All optional URL parts must be surrounded by parenthesis, i.e. /:controller(:action(/:id))
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/routes.rb
... | ... | @@ -38,7 +38,7 @@ Noosfero::Application.routes.draw do |
38 | 38 | |
39 | 39 | # user account controller |
40 | 40 | match 'account/new_password/:code' => 'account#new_password', :controller => 'account', :action => 'new_password' |
41 | - match 'account/:action', :controller => 'account' | |
41 | + match 'account(/:action)', :controller => 'account' | |
42 | 42 | |
43 | 43 | # enterprise registration |
44 | 44 | match 'enterprise_registration/:action', :controller => 'enterprise_registration' | ... | ... |