summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 17:45:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 17:45:12 +0000
commit986ffb24343877a76b505363aa2dc836e16465f5 (patch)
treef7ad269a7abd67dbfa994958c2e536a768e1a7cd /config
parentefc6abea07a7a437b0a68cfb297b53fbe6d9de2b (diff)
downloadredmine-986ffb24343877a76b505363aa2dc836e16465f5.tar.gz
redmine-986ffb24343877a76b505363aa2dc836e16465f5.zip
Use named routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9940 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index b4c792b99..e3ed8859a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -20,8 +20,8 @@ RedmineApp::Application.routes.draw do
match 'login', :to => 'account#login', :as => 'signin'
match 'logout', :to => 'account#logout', :as => 'signout'
- match 'account/register', :to => 'account#register', :via => [:get, :post]
- match 'account/lost_password', :to => 'account#lost_password', :via => [:get, :post]
+ match 'account/register', :to => 'account#register', :via => [:get, :post], :as => 'register'
+ match 'account/lost_password', :to => 'account#lost_password', :via => [:get, :post], :as => 'lost_password'
match 'account/activate', :to => 'account#activate', :via => :get
match '/news/preview', :controller => 'previews', :action => 'news', :as => 'preview_news'