<% if current_admin != nil %>
Вы вошли как <%= current_admin[:lname] %> <%= current_admin[:fname] %> <%= link_to "Выйти", admins_logout_path, method: :delete %>
<% elsif current_user != nil %>
Вы вошли как <%= current_user[:lname] %> <%= current_user[:fname] %> <%= current_user[:mname] %> <%= link_to "Выйти", destroy_user_session_path, method: :delete %>
<% end %>