Fix bug.
This commit is contained in:
parent
b695423268
commit
a4ee727b46
|
@ -33,7 +33,7 @@ class Admin::FaqsController < OrbitAdminController
|
||||||
@qa.create_user_id = current_user.id
|
@qa.create_user_id = current_user.id
|
||||||
@qa.update_user_id = current_user.id
|
@qa.update_user_id = current_user.id
|
||||||
@qa.save
|
@qa.save
|
||||||
redirect_to params['referer_url']
|
redirect_to admin_faqs_path#params['referer_url']
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
|
@ -51,7 +51,7 @@ class Admin::FaqsController < OrbitAdminController
|
||||||
@qa.update_attributes(create_params)
|
@qa.update_attributes(create_params)
|
||||||
@qa.update_user_id = current_user.id
|
@qa.update_user_id = current_user.id
|
||||||
@qa.save
|
@qa.save
|
||||||
redirect_to params['referer_url']
|
redirect_to admin_faqs_path#params['referer_url']
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
|
|
Loading…
Reference in New Issue