ActiveAdmin.register C80NewsTz::Rubric, :as => 'Rubric' do menu :label => "Рубрики", :parent => 'Содержимое сайта' before_filter :skip_sidebar!, :only => :index permit_params :title, :fact_ids => [] config.sort_order = 'title_asc' # controller do # cache_sweeper :suit_sweeper, :only => [:update,:create,:destroy] # end index do id_column column :title column :facts do |rubric| # нарисуем список list_items = ((rubric.facts.map { |p| "