diff --git a/config/routes.rb b/config/routes.rb index 4f9b661..73e29e0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -76,16 +76,27 @@ ActionController::Routing::Routes.draw do |map| reports.connect 'projects/:id/issues/report/:detail', :action => 'issue_report_details' end - map.connect 'my/account', :controller => 'my', :action => 'account', :conditions => {:method => [:get, :post]} - map.connect 'my/page', :controller => 'my', :action => 'page', :conditions => {:method => :get} - map.connect 'my', :controller => 'my', :action => 'index', :conditions => {:method => :get} # Redirects to my/page - map.connect 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key', :conditions => {:method => :post} - map.connect 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key', :conditions => {:method => :post} - map.connect 'my/password', :controller => 'my', :action => 'password', :conditions => {:method => [:get, :post]} - map.connect 'my/page_layout', :controller => 'my', :action => 'page_layout', :conditions => {:method => :get} - map.connect 'my/add_block', :controller => 'my', :action => 'add_block', :conditions => {:method => :post} - map.connect 'my/remove_block', :controller => 'my', :action => 'remove_block', :conditions => {:method => :post} - map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks', :conditions => {:method => :post} + map.connect 'my/account', :controller => 'my', :action => 'account', + :conditions => {:method => [:get, :post]} + map.connect 'my/page', :controller => 'my', :action => 'page', + :conditions => {:method => :get} + # Redirects to my/page + map.connect 'my', :controller => 'my', :action => 'index', + :conditions => {:method => :get} + map.connect 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key', + :conditions => {:method => :post} + map.connect 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key', + :conditions => {:method => :post} + map.connect 'my/password', :controller => 'my', :action => 'password', + :conditions => {:method => [:get, :post]} + map.connect 'my/page_layout', :controller => 'my', :action => 'page_layout', + :conditions => {:method => :get} + map.connect 'my/add_block', :controller => 'my', :action => 'add_block', + :conditions => {:method => :post} + map.connect 'my/remove_block', :controller => 'my', :action => 'remove_block', + :conditions => {:method => :post} + map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks', + :conditions => {:method => :post} map.resources :issues, :collection => {:bulk_edit => :get, :bulk_update => :post} do |issues| issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}