Skip to content

Instantly share code, notes, and snippets.

@baileylo
Created October 6, 2010 08:35
Show Gist options
  • Save baileylo/613026 to your computer and use it in GitHub Desktop.
Save baileylo/613026 to your computer and use it in GitHub Desktop.
<div id="nav">
<% if current_user %>
<%= link_to "Edit Profile", edit_user_path(current_user.id)%>
<%= link_to "Logout", :logout%>
<% else %>
<%= link_to "Register", new_user_path%> |
<%= link_to "Login", :login %>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment