nav.navbar.navbar-default.navbar-static-top.main-navbar
  .container-fluid
    .navbar-header
      = link_to "moi", admin_root_path, class: "navbar-brand"

    .collapse.navbar-collapse
      ul.nav.navbar-nav
        = nav_item "dashboard", admin_root_path
        - if can? :manage, User
          = nav_item "users", admin_users_path
        - if can? :read, Neuron
          = nav_item "neurons", admin_neurons_path

      ul.nav.navbar-nav.navbar-right
        li.dropdown
          = link_to "#", data: {toggle: "dropdown"} do
            = current_user
            span.caret
          ul.dropdown-menu role="menu"
            li
              = link_to t("actions.my_profile"), admin_user_path(current_user)
            li.divider
            li
              = link_to t("actions.logout"), destroy_user_session_path, method: :delete

nav.navbar.navbar-default.navbar-static-top.main-navbar
  .container-fluid
    .navbar-header
      = link_to "moi", admin_root_path, class: "navbar-brand"

    .collapse.navbar-collapse
      ul.nav.navbar-nav
        = nav_item "dashboard", admin_root_path
        - if can? :manage, User
          = nav_item "users", admin_users_path
        - if can? :read, Neuron
          = nav_item "neurons", admin_neurons_path

      ul.nav.navbar-nav.navbar-right
        li.dropdown
          = link_to "#", data: {toggle: "dropdown"} do
            = current_user.to_s
            span.caret
          ul.dropdown-menu role="menu"
            li
              = link_to t("actions.my_profile"), admin_user_path(current_user)
            li.divider
            li
              = link_to t("actions.logout"), destroy_user_session_path, method: :delete

Fix error if user don't have name
Fix error if user don't have name

GrowMoi/moi,GrowMoi/moi,GrowMoi/moi