diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
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| |