Renamed redirect_show to redirect_to_page and redirect_home
This commit is contained in:
parent
396c651487
commit
24f418e5b5
3 changed files with 14 additions and 10 deletions
|
@ -87,7 +87,11 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
end
|
||||
|
||||
def redirect_show(page_name = @page_name, web = @web_name)
|
||||
def redirect_home(web = @web_name)
|
||||
redirect_to_page('HomePage', web)
|
||||
end
|
||||
|
||||
def redirect_to_page(page_name = @page_name, web = @web_name)
|
||||
redirect_to :web => web, :controller => 'wiki', :action => 'show',
|
||||
:id => (page_name || 'HomePage')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue