Change navbar-header in rails admin

I used rails-admin. I get the name "myappname admin" in the navbar title bar. I want to change it with the name "myapp". I tried changing it with the view file setting

navigation.html.haml .container-fluid .navbar-header %button.navbar-toggle.collapsed{ type: 'button', data: { toggle: 'collapse', target: '#secondary-navigation' } } %span.sr-only= t('admin.toggle_navigation') %span.icon-bar %span.icon-bar %span.icon-bar %a.navbar-brand.pjax{href: dashboard_path} / = _get_plugin_name[0] || 'Rails' = "myapp" / %small= _get_plugin_name[1] || 'Admin' .collapse.navbar-collapse#secondary-navigation = render partial: 'layouts/rails_admin/secondary_navigation' 

but does not change the name of my application.

+5
source share
1 answer

If I'm right, I think you want to set the application name when using rails-admin

So you can try this

RailsAdmin.config do | config |

  config.main_app_name = ["Cool app", "BackOffice"] 

end

+6
source

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


All Articles