Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Administrate with a separate namespace #1375

Closed
cristianogregnanin opened this issue Jul 11, 2019 · 1 comment · Fixed by #1379
Closed

Use Administrate with a separate namespace #1375

cristianogregnanin opened this issue Jul 11, 2019 · 1 comment · Fixed by #1379

Comments

@cristianogregnanin
Copy link

I want use Administrate with an other namespace (supervisor), something like this:

  • app/controllers/supervisor/users_controller.rb
  • app/dashboards/supervisor/user.rb
  • app/model/user.rb
  • app/views/supervisors/users

I want to do this becouse I just have the admin namespace but the supervisor should manage different resources than the admin and he must see different views.

I have spent some hours in the Administrate's source code but I haven't found the solution.
It seems that the problem is due to the fact that there is no way to insert dashboards in namespaces.

@nickcharlton
Copy link
Member

Hi @cristianogregnanin!

We do have this feature, but it's hidden away in the generators so I'd not expect you to find it very easily.

I opened #1379 to add some documentation for this, let me know there if it's clear enough!

nickcharlton added a commit that referenced this issue Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants