diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-28 21:25:38 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-28 21:25:38 +0000 |
commit | c514dd6885af45ebb38d00ba4a8c61b1ea206d2c (patch) | |
tree | 1427bc497e59c610fc4c622ff55ffbb8704c0142 /app/controllers/wiki_controller.rb | |
parent | e7e7a91b857408557b037932de69f03c4bc6c9aa (diff) | |
download | redmine-c514dd6885af45ebb38d00ba4a8c61b1ea206d2c.tar.gz redmine-c514dd6885af45ebb38d00ba4a8c61b1ea206d2c.zip |
Refactor: convert WikiController to a REST resource
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4303 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r-- | app/controllers/wiki_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 39786341b..ae6f9d166 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -98,7 +98,7 @@ class WikiController < ApplicationController flash[:error] = l(:notice_locking_conflict) end - verify :method => :post, :only => :update, :render => {:nothing => true, :status => :method_not_allowed } + verify :method => :put, :only => :update, :render => {:nothing => true, :status => :method_not_allowed } # Creates a new page or updates an existing one def update @page = @wiki.find_or_new_page(params[:id]) @@ -234,7 +234,7 @@ class WikiController < ApplicationController return render_403 unless editable? attachments = Attachment.attach_files(@page, params[:attachments]) render_attachment_warning_if_needed(@page) - redirect_to :action => 'show', :id => @page.title + redirect_to :action => 'show', :id => @page.title, :project_id => @project end private |