cancanrails-admin

Remove navigation menu item for model without removing ability to manage in RailsAdmin and CanCan?


So I have a model (Image) that belongs to another model (Product), and I want to allow a user to manage both of these two types of models, but I don't want to list the model in the navigation menu in RailsAdmin.

Basically of these two I only want Product to be visible in the navigation menu, while allowing the user to still crud their images within the edit/add form of a Product.

Is this possible with CanCan? Or do I need to use CSS to hide these navigation items?


Solution

  • According to this issue, and this issue your only valid approach would be the CSS approach