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
This commit is contained in:
+3
-1
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user