route: code layout clean up account route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8364 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-25 12:34:52 +00:00
parent 2d7b57809d
commit b01c02c5b8
1 changed files with 10 additions and 5 deletions

View File

@ -8,11 +8,16 @@ ActionController::Routing::Routes.draw do |map|
map.home '', :controller => 'welcome', :conditions => {:method => :get} map.home '', :controller => 'welcome', :conditions => {:method => :get}
map.signin 'login', :controller => 'account', :action => 'login', :conditions => {:method => [:get, :post]} map.signin 'login', :controller => 'account', :action => 'login',
map.signout 'logout', :controller => 'account', :action => 'logout', :conditions => {:method => :get} :conditions => {:method => [:get, :post]}
map.connect 'account/register', :controller => 'account', :action => 'register', :conditions => {:method => [:get, :post]} map.signout 'logout', :controller => 'account', :action => 'logout',
map.connect 'account/lost_password', :controller => 'account', :action => 'lost_password', :conditions => {:method => [:get, :post]} :conditions => {:method => :get}
map.connect 'account/activate', :controller => 'account', :action => 'activate', :conditions => {:method => :get} map.connect 'account/register', :controller => 'account', :action => 'register',
:conditions => {:method => [:get, :post]}
map.connect 'account/lost_password', :controller => 'account', :action => 'lost_password',
:conditions => {:method => [:get, :post]}
map.connect 'account/activate', :controller => 'account', :action => 'activate',
:conditions => {:method => :get}
map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow' map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'