Extracted AdminController from WikiController

This commit is contained in:
Alexey Verkhovsky 2005-01-28 01:24:31 +00:00
parent 9bc9a29789
commit 88e52ab5a9
10 changed files with 223 additions and 191 deletions

View file

@ -71,6 +71,11 @@ class ApplicationController < ActionController::Base
not @web_name.nil?
end
def redirect_show(page_name = @page_name, web = @web_name)
redirect_to :web => web, :controller => 'wiki', :action => 'show',
:id => CGI.escape(page_name || 'HomePage')
end
@@REMEMBER_NOT = ['locked', 'save', 'back', 'file', 'pic', 'import']
def remember_location
if @response.headers['Status'] == '200 OK'