Created
March 12, 2013 22:37
-
-
Save srockstyle/5147736 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
<%if user_signed_in? %> | |
<%= link_to "Sign out", destroy_user_session_path, :method => :delete%> | |
<%end%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment