Commit 4cefe47d53c8d49868b93f0bb81e4801813e5b27

Authored by Victor Costa
1 parent 6abd4658

rails3: added alias to profile route

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/routes.rb
@@ -81,7 +81,7 @@ Noosfero::Application.routes.draw do @@ -81,7 +81,7 @@ Noosfero::Application.routes.draw do
81 match 'profile/:profile/comment/:action/:id', :controller => 'comment', :profile => /#{Noosfero.identifier_format}/ 81 match 'profile/:profile/comment/:action/:id', :controller => 'comment', :profile => /#{Noosfero.identifier_format}/
82 82
83 # public profile information 83 # public profile information
84 - match 'profile/:profile(/:action(/:id))', :controller => 'profile', :action => 'index', :id => /[^\/]*/, :profile => /#{Noosfero.identifier_format}/ 84 + match 'profile/:profile(/:action(/:id))', :controller => 'profile', :action => 'index', :id => /[^\/]*/, :profile => /#{Noosfero.identifier_format}/, :as => :profile
85 85
86 # contact 86 # contact
87 match 'contact/:profile/:action(/:id)', :controller => 'contact', :action => 'index', :id => /.*/, :profile => /#{Noosfero.identifier_format}/ 87 match 'contact/:profile/:action(/:id)', :controller => 'contact', :action => 'index', :id => /.*/, :profile => /#{Noosfero.identifier_format}/