Update page_contents_controller.rb,to delete the extra fields when editing the page_contents
This commit is contained in:
1 parent
4e724ef654
commit
fa6587265f
1 file changed
+1
@@ -33,6 +33,7 @@ class Admin::PageContentsController < OrbitAdminController
|
||||
end
|
||||
|
||||
def create
|
||||
PageContext.where("page_id" => params["page_context"]["page_id"]).destroy_all
|
||||
@page_content = PageContext.new(update_params)
|
||||
@page_content.update_user_id = current_user.id
|
||||
@page_content.save
|
||||
|
||||
Reference in new issue
Block a user