Skip to content
Discussion options

You must be logged in to vote

It works like this:

# config/initializers/madmin.rb

Madmin.site_name = Jumpstart.config.application_name

Madmin.menu.before_render do
  add label: "Sidekiq", url: Rails.application.routes.url_helpers.madmin_sidekiq_web_path, position: 1 if defined? ::Sidekiq::Web
  add label: "Users & Accounts", position: 2
  add label: "Payments", position: 3
  add label: "Resources", position: 4
end
# app/madmin/resources/user_resource.rb
class UserResource < Madmin::Resource
  menu parent: "Users & Accounts", position: 1
  # ...
end

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@monkjunior
Comment options

Answer selected by monkjunior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants