Created
June 10, 2011 01:38
-
-
Save ouyangzhiping/1018112 to your computer and use it in GitHub Desktop.
devise导航
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
<div class="user_navigation"> | |
<% if user_signed_in? %> | |
Hi! <%= current_user.email %> | |
<%= link_to("Sign out", destroy_user_session_path)%> | |
<% else %> | |
<%= link_to "Sign in", new_user_session_path %> | |
<%= link_to "Sign up", new_user_registration_path %> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment