Dashboards
This page is a stub. Migrate the content from
docs/guides/dashboard.md. TODO: copy the body, add front matter, and fix relative links to site URLs.
Configure metrics, charts, and recent-record widgets for the /admin dashboard.
module IronAdmin
module Dashboards
class AdminDashboard < IronAdmin::Dashboard
metric(:total_users, format: :number) { User.count }
recent :users, limit: 5
end
end
end