Skip to content

Commit

Permalink
Adding the sign out step
Browse files Browse the repository at this point in the history
  • Loading branch information
Turupawn committed Oct 27, 2015
1 parent 9069bde commit b6f2117
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,13 @@ class CallbacksController < Devise::OmniauthCallbacksController
end
```

### Step 8 - Add this link to login page or whatever you want.
### Step 8 - Add login and sign out links whatever you want.
```
<%= link_to "Sign in with Facebook", user_omniauth_authorize_path(:facebook) %>
<% if current_user %>
<%= link_to "Sign in with Facebook", user_omniauth_authorize_path(:facebook) %>
<% else %>
<%= link_to destroy_user_session_path, :method => :delete do %>Sign out<%end%>
<%end%>
```

### Note: For adding others providers you must edit this files:
Expand Down

0 comments on commit b6f2117

Please sign in to comment.