wiki is done
This commit is contained in:
parent
2e1f119f22
commit
bdc42488e9
8 changed files with 42 additions and 7 deletions
|
@ -42,11 +42,10 @@ class WikisController < ApplicationController
|
|||
end
|
||||
|
||||
def destroy
|
||||
@wiki = @project.wikis.find(params[:id])
|
||||
@wiki.destroy
|
||||
@wikis = @project.wikis.where(:slug => params[:id]).delete_all
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to wikis_url }
|
||||
format.html { redirect_to project_wiki_path(@project, :index), notice: "Page was successfully deleted" }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue