Created
November 24, 2014 12:25
-
-
Save zetavg/6b1a4d74def560fc6278 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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