<% for_any_user :logged_in do %>
  • <%= link_to('Edit registration', edit_user_registration_path) %>
  • <% end %> <% for_any_user :not_logged_in do %>
  • <%= link_to('Register', new_user_registration_path) %>
  • <% end %>