diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-29 08:36:19 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-29 08:36:19 +0000 |
commit | 037ccaf46dc86243647b3e6db9bf59cfa07feab0 (patch) | |
tree | da3c68835d4341b8cf237276a2ec08d08368ad13 | |
parent | 6c3987bbe6b638cfde4702ffc498974c25f0d498 (diff) | |
download | redmine-037ccaf46dc86243647b3e6db9bf59cfa07feab0.tar.gz redmine-037ccaf46dc86243647b3e6db9bf59cfa07feab0.zip |
route: code layout clean up wikis route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8418 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index e6d89953b..df40661b4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -28,8 +28,10 @@ ActionController::Routing::Routes.draw do |map| map.resources :time_entries, :controller => 'timelog', :collection => {:report => :get, :bulk_edit => :get, :bulk_update => :post} - map.connect 'projects/:id/wiki', :controller => 'wikis', :action => 'edit', :conditions => {:method => :post} - map.connect 'projects/:id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => [:get, :post]} + map.connect 'projects/:id/wiki', :controller => 'wikis', + :action => 'edit', :conditions => {:method => :post} + map.connect 'projects/:id/wiki/destroy', :controller => 'wikis', + :action => 'destroy', :conditions => {:method => [:get, :post]} map.with_options :controller => 'messages' do |messages_routes| messages_routes.with_options :conditions => {:method => :get} do |messages_views| |