Scopes #30
Unanswered
adrienpoly
asked this question in
Q&A
Scopes
#30
Replies: 1 comment 1 reply
-
I think we may already have partially what you need. You can define class UserResource < Madmin::Resource
scope :unconfirmed
end The The index view renders scopes here: https://github.com/excid3/madmin/blob/master/app/views/madmin/application/index.html.erb#L11 One thing this doesn't support is scopes with arguments though. I think that's to be expected though. And we do need to have support for custom pages and things more in the future. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
Is there a way to generate a dashboard for a scoped resource ?
Lets take an example a
User
must be manually confirmed. Can I simply make a link to this scoped resource in the navigation, scope it in the controller and put custom actions in the index view (confirm/reject).Last time I tried with Administrate the only option was to create a new model UserPending with a default scope in it. But that wasn't really convenient.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions