app/controllers/admin/calendaries_controller.rb
class Admin::CalendariesController < Admin::CommonController
protected
def index_with_list
%w(with_slug with_locale_names with_descriptions with_links)
end
def permitted_params
params.require(:calendary).permit(
:id, :licit, :language_code, :alphabeth_code, :author_name, :date, :council, :meta,
slug_attributes: %i(id text),
links_attributes: %i(id url language_code alphabeth_code _destroy),
titles_attributes: %i(id text language_code alphabeth_code _destroy),
descriptions_attributes: %i(id text language_code alphabeth_code _destroy))
end
end