Skip to content

Instantly share code, notes, and snippets.

@zetavg
Created September 29, 2014 04:09
Show Gist options
  • Save zetavg/502a8365e65459361973 to your computer and use it in GitHub Desktop.
Save zetavg/502a8365e65459361973 to your computer and use it in GitHub Desktop.
<p class="user-actions">
<% if current_user.blank? %>
<%= link_to("Sign In", new_user_session_path) %>
<%= link_to("Sign Up", new_user_registration_path) %>
<% else %>
Hello, <%= current_user.email %>
<%= link_to("Log Out", destroy_user_session_path, method: :delete) %>
<% end %>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment