Belongs to change header in activeadmin

I have model names for goods that may have assets . Assets are accessed through the sidebar:

Goods model

For reasons I don't know if the menu changes when I enter the assets section:

enter image description here

I want the menu to be the same no matter where the user is located. This is my navigation bar.

Is this a bug or function? Can I change the behavior?

+6
source share
1 answer

The solution I found was simple and actually documented in the official documentation . All you have to do is add navigagion_menu :default to your resource.

In this way

 ActiveAdmin.register Asset do menu false belongs_to :good navigation_menu :default end 
+7
source

Source: https://habr.com/ru/post/953985/


All Articles