Better messages and redirect when a page is deleted.
This commit is contained in:
parent
de86fcadd3
commit
6eba04d30d
1 changed files with 2 additions and 4 deletions
|
@ -88,10 +88,8 @@ class PagesController < ApplicationController
|
||||||
@page = Page.find(params[:id])
|
@page = Page.find(params[:id])
|
||||||
@page.destroy
|
@page.destroy
|
||||||
|
|
||||||
respond_to do |format|
|
flash[:notice] = "Die Seite '#{@page.title}' und alle Unterseiten wurden erfolgreich gelöscht."
|
||||||
format.html { redirect_to(pages_url) }
|
redirect_to wiki_path
|
||||||
format.xml { head :ok }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def all
|
def all
|
||||||
|
|
Loading…
Reference in a new issue