Skip to content

Commit

Permalink
Merge pull request #1 from Turupawn/master
Browse files Browse the repository at this point in the history
Adding the sign out step
  • Loading branch information
serpel committed Oct 27, 2015
2 parents 9069bde + b6f2117 commit 96d17e9
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 96d17e9

Please sign in to comment.