Skip to content

Instantly share code, notes, and snippets.

@Chryus
Last active August 29, 2015 13:57
Show Gist options
  • Save Chryus/9592133 to your computer and use it in GitHub Desktop.
Save Chryus/9592133 to your computer and use it in GitHub Desktop.
Container for user sign in/sign out
<div id="user_nav">
<% if user_signed_in? %>
Signed in as <%= current_user.email %>. Not you?
<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>
<% else %>
<%= link_to "Sign up", new_user_registration_path %> or <%= link_to "sign in", new_user_session_path %>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment