redirect to referer_url after update
This commit is contained in:
parent
943a01091f
commit
20ca6213d1
|
@ -53,7 +53,7 @@ class Admin::WikiPagesController < OrbitAdminController
|
|||
def update
|
||||
wiki = WikiPage.find(params[:id])
|
||||
wiki.update_attributes(wiki_page_params)
|
||||
redirect_to admin_wiki_pages_path(:page_id => wiki.page.id)
|
||||
redirect_to params['referer_url']
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -61,4 +61,4 @@ class Admin::WikiPagesController < OrbitAdminController
|
|||
def wiki_page_params
|
||||
params.require(:wiki_page).permit!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue