Skip to content

Instantly share code, notes, and snippets.

@dcaliri
Created November 23, 2011 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcaliri/1390165 to your computer and use it in GitHub Desktop.
Save dcaliri/1390165 to your computer and use it in GitHub Desktop.
HAML ftw
#user_nav
- if user_signed_in?
Signed in as #{current_user.email}. Not you?
\#{link_to "Sign out", destroy_user_session_path}
- else
= link_to "Sign up", new_user_registration_path
or
\#{link_to "Sign in", new_user_session_path}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment