2
Флажки не отображаются, а выпадающее меню пакетных действий выделено серым цветом для всех моих страниц ActiveAdmin. Мой admin/dashboard.rb
:Флажки и пакетные действия ActiveAdmin недоступны
ActiveAdmin.register_page "Dashboard" do
menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") }
content :title => proc{ I18n.t("active_admin.dashboard") } do
div :class => "blank_slate_container", :id => "dashboard_default_message" do
span :class => "blank_slate" do
span I18n.t("active_admin.dashboard_welcome.welcome")
small I18n.t("active_admin.dashboard_welcome.call_to_action")
end
end
end # content
end
Пример Admin.register
, Votes
:
ActiveAdmin.register Vote do
permit_params :ip_address, :weight, :response_id
index do
column :response
column :weight
column :ip_address
end
form do |f|
f.inputs do
f.input :response
f.input :ip_address, :as => :string
f.input :weight
end
f.actions
end
end
Gemfile запись: gem 'activeadmin', github: 'gregbell/active_admin'