summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-22 16:20:20 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-22 16:20:20 +0000
commitcac3b1e5381d0756ba9bb6bcb356a4b081f3407d (patch)
tree0db0a74406411e65697abe5150d56465dcc51818 /config/routes.rb
parent2fbf7bbcf1af756c4d0de3c7de96194376d33f1d (diff)
downloadredmine-cac3b1e5381d0756ba9bb6bcb356a4b081f3407d.tar.gz
redmine-cac3b1e5381d0756ba9bb6bcb356a4b081f3407d.zip
Refactor: split WikiController#edit into #update
update will handle the saving and should be accessed via POST only. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4272 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 84d00c687..5676f4546 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -41,8 +41,10 @@ ActionController::Routing::Routes.draw do |map|
end
wiki_routes.connect 'projects/:project_id/wiki/:page/:action',
- :action => /edit|rename|destroy|preview|protect/,
+ :action => /rename|destroy|preview|protect/,
:conditions => {:method => :post}
+
+ wiki_routes.connect 'projects/:project_id/wiki/:page/edit', :action => 'update', :conditions => {:method => :post}
end
map.with_options :controller => 'messages' do |messages_routes|