Skip to content

Instantly share code, notes, and snippets.

@bishopandco
Created November 2, 2010 05:29
Show Gist options
  • Select an option

  • Save bishopandco/659282 to your computer and use it in GitHub Desktop.

Select an option

Save bishopandco/659282 to your computer and use it in GitHub Desktop.
def sign_in_out_button
out = []
if current user
out << link_to "Sign out", '/logout', :class => "login_button round"
else
out << link_to "Sign in (or up)", '/login', :class => "login_button round"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment