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
|
def update
|
||||||
wiki = WikiPage.find(params[:id])
|
wiki = WikiPage.find(params[:id])
|
||||||
wiki.update_attributes(wiki_page_params)
|
wiki.update_attributes(wiki_page_params)
|
||||||
redirect_to admin_wiki_pages_path(:page_id => wiki.page.id)
|
redirect_to params['referer_url']
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -61,4 +61,4 @@ class Admin::WikiPagesController < OrbitAdminController
|
||||||
def wiki_page_params
|
def wiki_page_params
|
||||||
params.require(:wiki_page).permit!
|
params.require(:wiki_page).permit!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue