Created
September 11, 2013 16:57
-
-
Save LaurMo/6526547 to your computer and use it in GitHub Desktop.
is a user is signed in
This file contains 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
<% if user_signed_in? %> | |
Logged in as <%= current_user.username %> | |
<%= link_to 'Edit profile', edit_user_registration_path %> | | |
<%= link_to "Logout", destroy_user_session_path, method: :delete %> | |
<%= link_to 'View Your Collections', collections_path %> | |
<% link_to 'New Collection', new_collection_path %> | |
<% else %> | |
<%= link_to "Sign up", new_user_registration_path %> | | |
<%= link_to "Login", new_user_session_path %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment