From 4cefe47d53c8d49868b93f0bb81e4801813e5b27 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 22 Jan 2014 18:28:59 -0300 Subject: [PATCH] rails3: added alias to profile route --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 0e23576..463de8d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -81,7 +81,7 @@ Noosfero::Application.routes.draw do match 'profile/:profile/comment/:action/:id', :controller => 'comment', :profile => /#{Noosfero.identifier_format}/ # public profile information - match 'profile/:profile(/:action(/:id))', :controller => 'profile', :action => 'index', :id => /[^\/]*/, :profile => /#{Noosfero.identifier_format}/ + match 'profile/:profile(/:action(/:id))', :controller => 'profile', :action => 'index', :id => /[^\/]*/, :profile => /#{Noosfero.identifier_format}/, :as => :profile # contact match 'contact/:profile/:action(/:id)', :controller => 'contact', :action => 'index', :id => /.*/, :profile => /#{Noosfero.identifier_format}/ -- libgit2 0.21.2