##// END OF EJS Templates
route: code layout clean up 'my' route...
Toshi MARUYAMA -
r8248:f655fe35a738
parent child
Show More
@@ -76,16 +76,27 ActionController::Routing::Routes.draw do |map|
76 reports.connect 'projects/:id/issues/report/:detail', :action => 'issue_report_details'
76 reports.connect 'projects/:id/issues/report/:detail', :action => 'issue_report_details'
77 end
77 end
78
78
79 map.connect 'my/account', :controller => 'my', :action => 'account', :conditions => {:method => [:get, :post]}
79 map.connect 'my/account', :controller => 'my', :action => 'account',
80 map.connect 'my/page', :controller => 'my', :action => 'page', :conditions => {:method => :get}
80 :conditions => {:method => [:get, :post]}
81 map.connect 'my', :controller => 'my', :action => 'index', :conditions => {:method => :get} # Redirects to my/page
81 map.connect 'my/page', :controller => 'my', :action => 'page',
82 map.connect 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key', :conditions => {:method => :post}
82 :conditions => {:method => :get}
83 map.connect 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key', :conditions => {:method => :post}
83 # Redirects to my/page
84 map.connect 'my/password', :controller => 'my', :action => 'password', :conditions => {:method => [:get, :post]}
84 map.connect 'my', :controller => 'my', :action => 'index',
85 map.connect 'my/page_layout', :controller => 'my', :action => 'page_layout', :conditions => {:method => :get}
85 :conditions => {:method => :get}
86 map.connect 'my/add_block', :controller => 'my', :action => 'add_block', :conditions => {:method => :post}
86 map.connect 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key',
87 map.connect 'my/remove_block', :controller => 'my', :action => 'remove_block', :conditions => {:method => :post}
87 :conditions => {:method => :post}
88 map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks', :conditions => {:method => :post}
88 map.connect 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key',
89 :conditions => {:method => :post}
90 map.connect 'my/password', :controller => 'my', :action => 'password',
91 :conditions => {:method => [:get, :post]}
92 map.connect 'my/page_layout', :controller => 'my', :action => 'page_layout',
93 :conditions => {:method => :get}
94 map.connect 'my/add_block', :controller => 'my', :action => 'add_block',
95 :conditions => {:method => :post}
96 map.connect 'my/remove_block', :controller => 'my', :action => 'remove_block',
97 :conditions => {:method => :post}
98 map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks',
99 :conditions => {:method => :post}
89
100
90 map.resources :issues, :collection => {:bulk_edit => :get, :bulk_update => :post} do |issues|
101 map.resources :issues, :collection => {:bulk_edit => :get, :bulk_update => :post} do |issues|
91 issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}
102 issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}
General Comments 0
You need to be logged in to leave comments. Login now