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.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to(pages_url) }
|
||||
format.xml { head :ok }
|
||||
end
|
||||
flash[:notice] = "Die Seite '#{@page.title}' und alle Unterseiten wurden erfolgreich gelöscht."
|
||||
redirect_to wiki_path
|
||||
end
|
||||
|
||||
def all
|
||||
|
|
Loading…
Reference in a new issue