app/controllers/pages_controller.rb
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def page_params
      permitted = [:parent_id] + Page.globalize_attribute_names
      params.require(:page).permit(permitted)
    end
def page_params permitted = [ :parent_id ] + Page . globalize_attribute_names params . require ( :page ) . permit ( permitted ) end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
#params.require(:title,:body).permit(:parent)