- if current_user
  = menu_link(current_user.email, edit_user_registration_path) if Devise.mappings[:user].registerable?
  %li= link_to("Sign out", destroy_user_session_path, :method => :delete)
- if current_user && Devise.mappings[:user]
  = menu_link(current_user.email, edit_user_registration_path) if Devise.mappings[:user].registerable?
  %li= link_to("Sign out", destroy_user_session_path, :method => :delete)
Check for Devise mappings before trying to use them
Check for Devise mappings before trying to use them
